refactor(core): Use logger for packages/cli messages (no-changelog) (#9302)

This commit is contained in:
Iván Ovejero
2024-05-03 15:24:27 +02:00
committed by GitHub
parent b65e0e2811
commit 7bda92cc7c
15 changed files with 63 additions and 46 deletions

View File

@@ -76,7 +76,7 @@ export class Start extends BaseCommand {
const editorUrl = Container.get(UrlService).baseUrl;
open(editorUrl, { wait: true }).catch(() => {
console.log(
this.logger.info(
`\nWas not able to open URL in browser. Please open manually by visiting:\n${editorUrl}\n`,
);
});
@@ -339,7 +339,7 @@ export class Start extends BaseCommand {
}
async catch(error: Error) {
console.log(error.stack);
if (error.stack) this.logger.error(error.stack);
await this.exitWithCrash('Exiting due to an error.', error);
}
}