Improved Handling of Loggers while process is shutting down

This commit is contained in:
Luis Fernando Molina committed 2020-04-27 08:57:12 +02:00
1 parent 57685ff222
commit d435c0e158
7 files changed
+41 -4

No files matched your search

+4
View File
@@ -116,7 +116,11 @@
/* For each loop we want to create a new log file. */
if (logger !== undefined) {
logger.finalize()
}
logger = DEBUG_MODULE.newDebugLog();
global.LOGGER_MAP.set(MODULE_NAME, logger)
logger.bot = bot;
logger.initialize();