From 6f1a7ed2f95c57155ac591692bd1730d90edc5bf Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 22 Nov 2019 19:49:49 +0100 Subject: [PATCH] WARN instead of ERROR --- Multi-Period-Daily/User.bot.js | 4 ++-- Multi-Period-Market/User.bot.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Multi-Period-Daily/User.bot.js b/Multi-Period-Daily/User.bot.js index e4c2d8402..fb17ab8f6 100644 --- a/Multi-Period-Daily/User.bot.js +++ b/Multi-Period-Daily/User.bot.js @@ -318,8 +318,8 @@ Read the candles and volumes from Bruce and produce a file for each day and for if (err.message === 'File does not exist.' || err.code === 'The specified key does not exist.') { - logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + err.stack); - logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry."); + logger.write(MODULE_NAME, "[WARN] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + err.stack); + logger.write(MODULE_NAME, "[WARN] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry."); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; diff --git a/Multi-Period-Market/User.bot.js b/Multi-Period-Market/User.bot.js index bf3752de6..ed10eb625 100644 --- a/Multi-Period-Market/User.bot.js +++ b/Multi-Period-Market/User.bot.js @@ -532,8 +532,8 @@ if (err.message === 'File does not exist.' || err.code === 'The specified key does not exist.') { - logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + err.stack); - logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry."); + logger.write(MODULE_NAME, "[WARN] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + JSON.stringify(err)); + logger.write(MODULE_NAME, "[WARN] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry."); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return;