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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user