Multi Session Logs + Improvements in handlling Fails

This commit is contained in:
Luis Fernando Molina committed 2019-10-05 10:26:09 +02:00
1 parent 0b999ed1fb
commit a0843d2281
6 files changed
+67 -9

No files matched your search

+7 -1
View File
@@ -66,7 +66,13 @@ exports.newDebugLog = function newDebugLog() {
const FILE_STORAGE = require('./FileStorage.js');
let fileStorage = FILE_STORAGE.newFileStorage();
let filePath = thisObject.bot.filePathRoot + "/Logs/" + thisObject.bot.process + "/" + executionDatetime;
let filePath = thisObject.bot.filePathRoot + "/Logs/" + thisObject.bot.process + "/"
if (thisObject.bot.SESSION !== undefined) {
filePath = filePath + thisObject.bot.SESSION.name + "/" + executionDatetime;
} else {
filePath = filePath + executionDatetime;
}
if (thisObject.bot.debug.year !== undefined) {