Better logging for shares

This commit is contained in:
Matt 2014-04-03 12:33:10 -06:00
parent 984d3251b4
commit 361641019f
1 changed files with 2 additions and 2 deletions

View File

@ -126,10 +126,10 @@ module.exports = function(logger){
if (isValidShare)
logger.debug(logSystem, logComponent, logSubCat, 'Valid share of difficulty ' + data.difficulty + ' by ' + data.worker + ' [' + data.ip + ']' );
logger.debug(logSystem, logComponent, logSubCat, 'Share accepted at ' + data.difficulty + ' with diff ' + data.shareDiff + ' by ' + data.worker + ' [' + data.ip + ']' );
else if (!isValidShare)
logger.debug(logSystem, logComponent, logSubCat, 'Invalid share submitted, share data: ' + shareData);
logger.debug(logSystem, logComponent, logSubCat, 'Share rejected: ' + shareData);
handlers.share(isValidShare, isValidBlock, data)