From 82ddf72b825997fd74a4b361cbdf3cca147a32ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cruz?= Date: Sat, 21 Dec 2024 01:26:13 +0000 Subject: [PATCH] Test --- src/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ad411f7..fa02fe3 100644 --- a/src/index.js +++ b/src/index.js @@ -180,27 +180,32 @@ class ProcessManager { this.terminating = true; + console.log('1'); if (this.running.size || this.startedShutdown) { return; } this.startedShutdown = true; - + console.log('2'); this.log.info('Starting shutdown'); await this.hook('drain'); + console.log('3'); this.log.info(`${this.hooks.filter(({ type }) => type === 'drain').length} server(s) drained`); await this.hook('disconnect'); + console.log('4'); + this.log.info(`${this.hooks.filter(({ type }) => type === 'disconnect').length} service(s) disconnected`); await this.hook('exit', this.errors); - this.log.info('Flushing output'); + console.log('5'); + // this.log.info('Flushing output'); - await this.flushOutput(); + // await this.flushOutput(); this.exit(); }