Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INDY-1949: Add more logging #1056

Merged
merged 7 commits into from
Jan 18, 2019

Conversation

Toktar
Copy link
Contributor

@Toktar Toktar commented Jan 18, 2019

Add logging for a while. Return after solving the task INDY-1949.

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
self.logger.debug("Queueing commit due to unavailability of PREPARE. "
"Request {} from {}".format(request, sender))
self.logger.info("Queueing commit due to unavailability of PREPARE. "
"Request {} from {}".format(request, sender))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, that we shoud add "key" into log string, for checking equality of key and value in the commitsWaitingForPrepare map ((key should be equal to (request.viewNo, request.ppSeqNo)))

self.logger.debug("{} queueing prepare due to unavailability of PRE-PREPARE. "
"Prepare {} from {}".format(self, pMsg, sender))
self.logger.info("{} queueing prepare due to unavailability of PRE-PREPARE. "
"Prepare {} from {}".format(self, pMsg, sender))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, that we shoud add "key" into log string, for checking equality of key and value in the preparesWaitingForPrePrepare map (key should be equal to (request.viewNo, request.ppSeqNo))

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
lampkin-diet
lampkin-diet previously approved these changes Jan 18, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
ashcherbakov
ashcherbakov previously approved these changes Jan 18, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
ashcherbakov
ashcherbakov previously approved these changes Jan 18, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@ashcherbakov ashcherbakov merged commit 6b6d7e6 into hyperledger:master Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants