diff --git a/DebugLog.js b/DebugLog.js index 7da4c0bed..f16089b14 100644 --- a/DebugLog.js +++ b/DebugLog.js @@ -92,6 +92,8 @@ sharedFileContent = sharedFileContent + thisObject.bot.blobContent[i]; } + thisObject.bot.blobContent = []; + sharedFileContent = sharedFileContent + '\r\n' + "]"; cloudStorage.createTextFile(filePath, "AllModules" + ".json", sharedFileContent, onSharedFileCreated); diff --git a/ExtractionBotProcessMainLoop.js b/ExtractionBotProcessMainLoop.js index 516ef7e49..19d72bd3c 100644 --- a/ExtractionBotProcessMainLoop.js +++ b/ExtractionBotProcessMainLoop.js @@ -154,7 +154,7 @@ try { /* For each loop we want to create a new log file. */ - + logger = DEBUG_MODULE.newDebugLog(); logger.fileName = MODULE_NAME; logger.bot = bot;