diff --git a/Context.js b/Context.js index 62a6af57f..dc365ec50 100644 --- a/Context.js +++ b/Context.js @@ -66,7 +66,7 @@ /* Storage account to be used here. */ const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(logger); let statusDependencies; diff --git a/DataSet.js b/DataSet.js index ee96308f1..351822890 100644 --- a/DataSet.js +++ b/DataSet.js @@ -15,7 +15,7 @@ exports.newDataSet = function newDataSet(BOT, logger) { /* Storage account to be used here. */ const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(logger); return thisObject; diff --git a/IndicatorBotProcessMainLoop.js b/IndicatorBotProcessMainLoop.js index 9e856c6c1..52707db55 100644 --- a/IndicatorBotProcessMainLoop.js +++ b/IndicatorBotProcessMainLoop.js @@ -11,7 +11,7 @@ const MULTI_PERIOD_MARKET = require(ROOT_DIR + 'MultiPeriodMarket'); const MULTI_PERIOD_DAILY = require(ROOT_DIR + 'MultiPeriodDaily'); const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(parentLogger); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); let logger; // We need this here in order for the loopHealth function to work and be able to rescue the loop when it gets in trouble. diff --git a/MultiPeriodMarket.js b/MultiPeriodMarket.js index 38747554f..7f20c8354 100644 --- a/MultiPeriodMarket.js +++ b/MultiPeriodMarket.js @@ -19,7 +19,7 @@ let usertBot; const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(logger); let processConfig; diff --git a/SensorBotProcessMainLoop.js b/SensorBotProcessMainLoop.js index 6bd875c66..8a6312951 100644 --- a/SensorBotProcessMainLoop.js +++ b/SensorBotProcessMainLoop.js @@ -9,7 +9,7 @@ let COMMONS_MODULE; const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(parentLogger); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); let logger; // We need this here in order for the loopHealth function to work and be able to rescue the loop when it gets in trouble. diff --git a/StatusReport.js b/StatusReport.js index 6023575eb..106dfa3a4 100644 --- a/StatusReport.js +++ b/StatusReport.js @@ -30,7 +30,7 @@ /* Storage account to be used here. */ const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(logger); let month; let year; diff --git a/TradingBotProcessMainLoop.js b/TradingBotProcessMainLoop.js index f477d4a2b..63ba92fc9 100644 --- a/TradingBotProcessMainLoop.js +++ b/TradingBotProcessMainLoop.js @@ -10,7 +10,7 @@ const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(parentLogger); let logger; // We need this here in order for the loopHealth function to work and be able to rescue the loop when it gets in trouble. let nextLoopTimeoutHandle; diff --git a/TradingEngineProcessMainLoop.js b/TradingEngineProcessMainLoop.js index d43569348..bcfdd1727 100644 --- a/TradingEngineProcessMainLoop.js +++ b/TradingEngineProcessMainLoop.js @@ -11,7 +11,7 @@ const MULTI_PERIOD_MARKET = require(ROOT_DIR + 'MultiPeriodMarket'); const MULTI_PERIOD_DAILY = require(ROOT_DIR + 'MultiPeriodDaily'); const FILE_STORAGE = require('./Integrations/FileStorage.js'); - let fileStorage = FILE_STORAGE.newFileStorage(); + let fileStorage = FILE_STORAGE.newFileStorage(parentLogger); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); let logger; // We need this here in order for the loopHealth function to work and be able to rescue the loop when it gets in trouble.