Logging at user defined folderName in sessions objects
This commit is contained in:
1 parent
772482e156
commit
b3d5c293f5
2 files changed
+7
-2
No files matched your search
+5
-1
@@ -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
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user