Bug fixed undefined in logs

This commit is contained in:
Luis Fernando Molina committed 2019-10-16 19:14:22 +02:00
1 parent f37d16b797
commit 772482e156
5 files changed
+80 -4

No files matched your search

+2 -2
View File
@@ -69,7 +69,7 @@ exports.newDebugLog = function newDebugLog() {
let filePath = thisObject.bot.filePathRoot + "/Logs/" + thisObject.bot.process + "/"
if (thisObject.bot.SESSION !== undefined) {
filePath = filePath + thisObject.bot.SESSION.name + "/" + executionDatetime;
filePath = filePath + thisObject.bot.SESSION.id + "/" + executionDatetime;
} else {
filePath = filePath + executionDatetime;
}
@@ -101,7 +101,7 @@ exports.newDebugLog = function newDebugLog() {
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
console.log("[ERROR] DebugLog -> persist -> onInizialized -> onFileCreated -> err = "+ err.stack);
console.log("[ERROR] DebugLog -> persist -> onInizialized -> onFileCreated -> err = "+ err.message);
setTimeout(writeLog, 10000); // Lets retry until we make it.
return;