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(); }