mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Use logger for packages/cli messages (no-changelog) (#9302)
This commit is contained in:
@@ -320,7 +320,7 @@ export abstract class BaseCommand extends Command {
|
||||
const forceShutdownTimer = setTimeout(async () => {
|
||||
// In case that something goes wrong with shutdown we
|
||||
// kill after timeout no matter what
|
||||
console.log(`process exited after ${this.gracefulShutdownTimeoutInS}s`);
|
||||
this.logger.info(`process exited after ${this.gracefulShutdownTimeoutInS}s`);
|
||||
const errorMsg = `Shutdown timed out after ${this.gracefulShutdownTimeoutInS} seconds`;
|
||||
await this.exitWithCrash(errorMsg, new Error(errorMsg));
|
||||
}, this.gracefulShutdownTimeoutInS * 1000);
|
||||
|
||||
Reference in New Issue
Block a user