Logging to console Improved

This commit is contained in:
Luis Fernando Molina committed 2019-04-06 09:46:38 +02:00
1 parent 2c171b780e
commit 8c79401a9b
1 file changed
+7 -1
+7 -1
View File
@@ -460,6 +460,8 @@
charlyStorage.getTextFile(filePath, fileName, onNextFileReceived, true);
console.log("[INFO] start -> findNextHole -> readNextFile -> reading file at dateForPath = " + dateForPath);
function onNextFileReceived(err, text) {
try {
@@ -592,7 +594,7 @@
let lastRecordedTradeId = 0;
let lastRecordedCounter = 0;
if (holeFixingStatusReport !== undefined) { // The whole could have benn found before the monthly report was created.
if (holeFixingStatusReport.lastTrade !== undefined) { // The whole could have benn found before the monthly report was created.
lastRecordedTradeId = holeFixingStatusReport.lastTrade.id;
lastRecordedCounter = holeFixingStatusReport.lastTrade.counter;
@@ -728,6 +730,8 @@
charlyStorage.getTextFile(filePath, fileName, onNextFileReceived, true);
console.log("[INFO] start -> findNextHole -> findEndOfHole -> reading file at dateForPath = " + dateForPath);
function onNextFileReceived(err, text) {
try {
@@ -1097,6 +1101,8 @@
charlyStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated);
console.log("[INFO] start -> tradesReadyToBeSaved -> nextRecord -> creating file at dateForPath = " + dateForPath);
function onFileCreated(err) {
try {