Update FileStorage.js
This commit is contained in:
1 parent
185f1b8f13
commit
4ecdaaa7ac
1 file changed
+2
-3
@@ -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 = {}
|
||||
|
||||
Reference in new issue
Block a user