Horrible Bug Fixed, not stopping listening to events of status reports produced multiple callbacks

This commit is contained in:
Luis Fernando Molina committed 2019-10-01 12:54:09 +02:00
1 parent 4d0f01e0b5
commit c060308739
8 files changed
+30 -29

No files matched your search

+4 -1
View File
@@ -94,8 +94,9 @@ exports.newDebugLog = function newDebugLog() {
function onFileCreated(err) {
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
console.log("[ERROR] DebugLog -> persist -> onInizialized -> onFileCreated -> err = "+ err.stack);
setTimeout(writeLog, 10000); // Lets retry until we make it.
return;
}
@@ -134,7 +135,9 @@ exports.newDebugLog = function newDebugLog() {
if (thisObject.bot) {
key = thisObject.bot.devTeam + '-' + thisObject.bot.codeName + '-' + thisObject.bot.process
}
console.log(" ");
console.log(message + ' @ ' + key)
console.log(" ");
}
accumulatedLog = accumulatedLog + logLine;