diff --git a/utils/fc_wrangler/enrollment.js b/utils/fc_wrangler/enrollment.js index bb9cd2945..5b71a5dbb 100644 --- a/utils/fc_wrangler/enrollment.js +++ b/utils/fc_wrangler/enrollment.js @@ -47,7 +47,17 @@ module.exports = function (logger) { return; } - logger.info('[fcw] Going to enroll for mspId ', options); + var debug = { // this is just for console printing, no PEM here + peer_urls: options.peer_urls, + channel_id: options.channel_id, + uuid: options.uuid, + ca_url: options.ca_url, + orderer_url: options.orderer_url, + enroll_id: options.enroll_id, + enroll_secret: options.enroll_secret, + msp_id: options.msp_id + }; + logger.info('[fcw] Going to enroll for mspId ', debug); // Make eCert kvs (Key Value Store) HFC.newDefaultKeyValueStore({ diff --git a/utils/fc_wrangler/query_cc.js b/utils/fc_wrangler/query_cc.js index de780a6ae..d3fbd702b 100644 --- a/utils/fc_wrangler/query_cc.js +++ b/utils/fc_wrangler/query_cc.js @@ -33,7 +33,15 @@ module.exports = function (logger) { txId: chain.buildTransactionID(nonce, obj.submitter), nonce: nonce, }; - logger.debug('[fcw] Sending query req', request); + var debug = { // this is just for console printing, no NONCE here + chainId: options.channel_id, + chaincodeId: options.chaincode_id, + chaincodeVersion: options.chaincode_version, + fcn: options.cc_function, + args: options.cc_args, + txId: chain.buildTransactionID(nonce, obj.submitter), + }; + logger.debug('[fcw] Sending query req', debug); chain.queryByChaincode(request //nothing