color output

This commit is contained in:
Iuri Matias 2018-06-11 12:13:30 -04:00 committed by Richard Ramos
parent a4985fde40
commit e46f6aa5b7
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ class ConsoleListener {
gasUsed = utils.hexToNumber(gasUsed); gasUsed = utils.hexToNumber(gasUsed);
blockNumber = utils.hexToNumber(blockNumber); blockNumber = utils.hexToNumber(blockNumber);
this.logger.debug(`${name}.${functionName}(${paramString}) : ${transactionHash} | gas:${gasUsed} | blk:${blockNumber} | status:${status}`); this.logger.info(`Blockchain>`.underline + ` ${name}.${functionName}(${paramString})`.bold + ` | ${transactionHash} | gas:${gasUsed} | blk:${blockNumber} | status:${status}`);
} else { } else {
this.logger.debug(JSON.stringify(request)); this.logger.info(JSON.stringify(request));
} }
}); });
} }