diff --git a/Hole-Fixing/User.Bot.js b/Hole-Fixing/User.Bot.js index 38a714961..29c40deaa 100644 --- a/Hole-Fixing/User.Bot.js +++ b/Hole-Fixing/User.Bot.js @@ -457,7 +457,7 @@ fileStorage.getTextFile(bot.devTeam, filePath, onNextFileReceived, true); - console.log("[INFO] start -> findNextHole -> readNextFile -> reading file at dateForPath = " + dateForPath); + logger.write(MODULE_NAME, "[INFO] start -> findNextHole -> readNextFile -> reading file at dateForPath = " + dateForPath); function onNextFileReceived(err, text) { @@ -770,7 +770,7 @@ fileStorage.getTextFile(bot.devTeam, filePath, onNextFileReceived, true); - console.log("[INFO] start -> findNextHole -> findEndOfHole -> reading file at dateForPath = " + dateForPath); + logger.write(MODULE_NAME, "[INFO] start -> findNextHole -> findEndOfHole -> reading file at dateForPath = " + dateForPath); function onNextFileReceived(err, text) { @@ -1183,7 +1183,7 @@ fileStorage.createTextFile(bot.devTeam, filePath, fileContent + '\n', onFileCreated); - console.log("[INFO] start -> tradesReadyToBeSaved -> nextRecord -> creating file at dateForPath = " + dateForPath); + logger.write(MODULE_NAME, "[INFO] start -> tradesReadyToBeSaved -> nextRecord -> creating file at dateForPath = " + dateForPath); function onFileCreated(err) {