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

@@ -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);