mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Use logger for packages/cli messages (no-changelog) (#9302)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user