Add debug for gateway endorsement requests #2538
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add debug messages for the results of gateway endorsement requests.
This makes it easy for developers to see which endorsers were called
and how they each responded.
Sample debug message:
2021-04-13 16:03:17.700 EDT 007c DEBU [gateway] func1 -> Endorse call to endorser returned success channel=testchannel txid=639171f184651f2913d81ba237991fb6e5152f76b28c27e09198103e7e9b855a endorserNumber=1 numEndorsers=2 endorserAddress=127.0.0.1:22005 endorserMspid=Org1MSP status=200 message="message"
Signed-off-by: David Enyeart [email protected]