From 67d1171511eb6783c9540f3c4f9f4d191fe4a1c8 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 4 Jun 2018 11:53:09 +0200 Subject: [PATCH] Cleaning the log array --- DebugLog.js | 2 ++ ExtractionBotProcessMainLoop.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;