From e39ed5203cbb54d85c94be95f030c20fd2c732b3 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Fri, 19 May 2017 17:47:36 -0700 Subject: [PATCH] Adding logging for errors in the share parsing. --- lib/local_comms.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/local_comms.js b/lib/local_comms.js index 1473357..61b8338 100644 --- a/lib/local_comms.js +++ b/lib/local_comms.js @@ -261,6 +261,8 @@ function Database(){ cachedData[minerID].totalHashes += share.shares; cachedData[minerIDWithIdentifier].goodShares += 1; cachedData[minerID].goodShares += 1; + } else { + console.error("Error in share parser: " + JSON.stringify(share)); } if(shareObject.length === shareCount){ // Perform insert and return