From 4ecdaaa7ac66a34b92356e64b8d1a517555b0527 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 2 Dec 2020 11:15:20 +0100 Subject: [PATCH] Update FileStorage.js --- Projects/Superalgos/TS/Task-Modules/FileStorage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Projects/Superalgos/TS/Task-Modules/FileStorage.js b/Projects/Superalgos/TS/Task-Modules/FileStorage.js index 26ab8fb1e..c8c92609c 100644 --- a/Projects/Superalgos/TS/Task-Modules/FileStorage.js +++ b/Projects/Superalgos/TS/Task-Modules/FileStorage.js @@ -1,12 +1,10 @@ - -const path = require('path') - exports.newFileStorage = function newFileStorage(processIndex, host, port) { const MODULE_NAME = 'FileStorage' const MAX_RETRY = 10 const FAST_RETRY_TIME_IN_MILISECONDS = 500 const SLOW_RETRY_TIME_IN_MILISECONDS = 2000 + const path = require('path') let thisObject = { asyncGetTextFile: asyncGetTextFile, @@ -16,6 +14,7 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) { deleteTextFile: deleteTextFile } + let logger if (TS.projects.superalgos.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE === undefined) { // Dummy logger logger = {}