From f8b110e28a58c6ae4edba1cdd37a6089328ddda7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 12 Jun 2020 21:43:58 +0200 Subject: [PATCH] cleaning --- DebugLog.js | 2 -- LowFrequencyTrading/TradingProcess.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/DebugLog.js b/DebugLog.js index 1832d53db..e7c874e9b 100644 --- a/DebugLog.js +++ b/DebugLog.js @@ -141,9 +141,7 @@ exports.newDebugLog = function newDebugLog() { function write(pModule, pMessage) { - try { - if (disableLogging === true) { return; } if (thisObject.bot === undefined) { return; } diff --git a/LowFrequencyTrading/TradingProcess.js b/LowFrequencyTrading/TradingProcess.js index ffe9cb149..e900ade5c 100644 --- a/LowFrequencyTrading/TradingProcess.js +++ b/LowFrequencyTrading/TradingProcess.js @@ -176,12 +176,10 @@ } function startFromBegining() { - contextVariables.lastFile = new Date(contextVariables.dateBeginOfMarket.getUTCFullYear() + "-" + (contextVariables.dateBeginOfMarket.getUTCMonth() + 1) + "-" + contextVariables.dateBeginOfMarket.getUTCDate() + " " + "00:00" + GMT_SECONDS); if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> startFromBegining -> contextVariables.lastFile = " + contextVariables.lastFile); } processSingleFiles(); - } } catch (err) {