Skip to content

Commit

Permalink
better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dshuffma-ibm committed Apr 3, 2017
1 parent a03d51d commit 37ee5f1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 11 additions & 1 deletion utils/fc_wrangler/enrollment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
10 changes: 9 additions & 1 deletion utils/fc_wrangler/query_cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ee5f1

Please sign in to comment.