diff --git a/CanvasApp/DesignSpace/Workspace/FunctionLibraries/SessionFunctions.js b/CanvasApp/DesignSpace/Workspace/FunctionLibraries/SessionFunctions.js index a35c3ec60..13e33b381 100644 --- a/CanvasApp/DesignSpace/Workspace/FunctionLibraries/SessionFunctions.js +++ b/CanvasApp/DesignSpace/Workspace/FunctionLibraries/SessionFunctions.js @@ -21,7 +21,7 @@ function newSessionFunctions () { } if (node.payload.referenceParent === undefined) { - node.payload.uiObject.setErrorMessage('Parent Process Instance need to reference a Process Definition.') + node.payload.uiObject.setErrorMessage('Session needs to reference a Trading System.') callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE) return } diff --git a/TaskServer/DebugLog.js b/TaskServer/DebugLog.js index 123a45006..5a33a9bf6 100644 --- a/TaskServer/DebugLog.js +++ b/TaskServer/DebugLog.js @@ -61,7 +61,7 @@ exports.newDebugLog = function newDebugLog() { function persist() { - /* Here we actually write the content of the in-memory log to a blob */ + /* Here we actually write the content of the in-memory log to a file */ try { @@ -96,7 +96,9 @@ exports.newDebugLog = function newDebugLog() { writeLog(); /* This is the implementation of the mechanism to auto-mantain logs. */ - thisObject.bot.LOGS_TO_DELETE_QUEUE.push(filePath + '/' + fileName) + if (contentToPersist.indexOf('[ERROR]') < 0) { + thisObject.bot.LOGS_TO_DELETE_QUEUE.push(filePath + '/' + fileName) + } if (thisObject.bot.LOGS_TO_DELETE_QUEUE.length > thisObject.bot.DELETE_QUEUE_SIZE) { let fileToDelete = thisObject.bot.LOGS_TO_DELETE_QUEUE[0] thisObject.bot.LOGS_TO_DELETE_QUEUE.splice(0, 1)