Skip to content

Commit 37ee5f1

Browse files
committed
better logs
1 parent a03d51d commit 37ee5f1

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

utils/fc_wrangler/enrollment.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ module.exports = function (logger) {
4747
return;
4848
}
4949

50-
logger.info('[fcw] Going to enroll for mspId ', options);
50+
var debug = { // this is just for console printing, no PEM here
51+
peer_urls: options.peer_urls,
52+
channel_id: options.channel_id,
53+
uuid: options.uuid,
54+
ca_url: options.ca_url,
55+
orderer_url: options.orderer_url,
56+
enroll_id: options.enroll_id,
57+
enroll_secret: options.enroll_secret,
58+
msp_id: options.msp_id
59+
};
60+
logger.info('[fcw] Going to enroll for mspId ', debug);
5161

5262
// Make eCert kvs (Key Value Store)
5363
HFC.newDefaultKeyValueStore({

utils/fc_wrangler/query_cc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ module.exports = function (logger) {
3333
txId: chain.buildTransactionID(nonce, obj.submitter),
3434
nonce: nonce,
3535
};
36-
logger.debug('[fcw] Sending query req', request);
36+
var debug = { // this is just for console printing, no NONCE here
37+
chainId: options.channel_id,
38+
chaincodeId: options.chaincode_id,
39+
chaincodeVersion: options.chaincode_version,
40+
fcn: options.cc_function,
41+
args: options.cc_args,
42+
txId: chain.buildTransactionID(nonce, obj.submitter),
43+
};
44+
logger.debug('[fcw] Sending query req', debug);
3745

3846
chain.queryByChaincode(request
3947
//nothing

0 commit comments

Comments
 (0)