Close log streams on process shutdown

This commit is contained in:
Zaid Humaimidi committed 2023-11-14 01:41:25 -08:00
1 parent 4cb143cc0a
commit 7a142a4c08
4 files changed
+12 -6

No files matched your search

+3 -1
View File
@@ -37,7 +37,9 @@ function exitWorkerGracefully(): void {
db.disconnect(),
extensions.killAll(),
cluster.worker.disconnect(),
]).catch(exitWorkerUngracefully);
])
.then(logger.close)
.catch(exitWorkerUngracefully);
}
function exitWorkerUngracefully(): void {