Skip to content

Commit

Permalink
[FAB-7860] Replace console.log with logger.debug
Browse files Browse the repository at this point in the history
There were a few console.log calls which needed
to be converted to logger.debug

Change-Id: Ibf118a3dee95f86a0f7f909348f9402d9baae031
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
  • Loading branch information
mastersingh24 committed Jan 24, 2018
1 parent 31b7caa commit 95d4f48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fabric-client/lib/impl/bccsp_pkcs11.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ var CryptoSuite_PKCS11 = class extends api.CryptoSuite {
_fixEcpt(ecpt) {
if ((ecpt.length & 1) == 0 &&
(ecpt[0] == 0x04) && (ecpt[ecpt.length - 1] == 0x04)) {
console.log(__func() +
logger.debug(__func() +
'workaround opencryptoki EC point wrong length: ' +
ecpt.length);
ecpt = ecpt.slice(0, ecpt.length - 1);
} else if (ecpt[0] == 0x04 && ecpt[2] == 0x04) {
console.log('trimming leading 0x04 0xXX', ecpt);
logger.debug('trimming leading 0x04 0xXX', ecpt);
ecpt = ecpt.slice(2);
console.log(ecpt);
logger.debug(ecpt);
}
return ecpt;
}
Expand Down

0 comments on commit 95d4f48

Please sign in to comment.