Fixing finalizing of loggers
This commit is contained in:
1 parent
a57374783a
commit
4b97755328
5 files changed
+23
-32
No files matched your search
@@ -1,4 +1,4 @@
|
||||
exports.newSensorBot = function newSensorBot(bot, parentLogger) {
|
||||
exports.newSensorBot = function newSensorBot(processIndex, bot, parentLogger) {
|
||||
|
||||
const MODULE_NAME = "Sensor Bot";
|
||||
const FULL_LOG = true;
|
||||
@@ -114,7 +114,7 @@
|
||||
logger.finalize()
|
||||
}
|
||||
logger = DEBUG_MODULE.newDebugLog();
|
||||
global.LOGGER_MAP.set(MODULE_NAME, logger)
|
||||
global.LOGGER_MAP.set(MODULE_NAME + global.TASK_NODE.bot.processes[processIndex].id, logger)
|
||||
logger.bot = bot;
|
||||
logger.initialize();
|
||||
|
||||
|
||||
Reference in new issue
Block a user