color output

This commit is contained in:
Iuri Matias 2018-06-11 12:13:30 -04:00
parent a4a812e7b1
commit c4eb042eff
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ class ConsoleListener {
gasUsed = utils.hexToNumber(gasUsed);
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 {
this.logger.debug(JSON.stringify(request));
this.logger.info(JSON.stringify(request));
}
});
}