Logging at user defined folderName in sessions objects

This commit is contained in:
Luis Fernando Molina committed 2019-10-17 09:31:14 +02:00
1 parent 772482e156
commit b3d5c293f5
2 files changed
+7 -2

No files matched your search

+5 -1
View File
@@ -69,7 +69,11 @@ exports.newDebugLog = function newDebugLog() {
let filePath = thisObject.bot.filePathRoot + "/Logs/" + thisObject.bot.process + "/"
if (thisObject.bot.SESSION !== undefined) {
filePath = filePath + thisObject.bot.SESSION.id + "/" + executionDatetime;
if (thisObject.bot.SESSION.code.folderName === undefined) {
filePath = filePath + thisObject.bot.SESSION.id + "/" + executionDatetime;
} else {
filePath = filePath + thisObject.bot.SESSION.code.folderName + "/" + executionDatetime;
}
} else {
filePath = filePath + executionDatetime;
}
+2 -1
View File
@@ -16,7 +16,8 @@
/* Initialize this info so that everything is logged propeerly */
bot.SESSION = {
name: bot.processNode.session.name,
id: bot.processNode.session.id
id: bot.processNode.session.id,
code: bot.processNode.session.code
}
/* Check if there is a session */