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

Downgraded severity of some messages from debug to trace #592

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

skhoroshavin
Copy link
Contributor

Signed-off-by: Sergey Khoroshavin [email protected]

@@ -1764,8 +1764,8 @@ def preLedgerCatchUp(self, ledger_id):

# revert uncommitted txns and state for unordered requests
r = self.master_replica.revert_unordered_batches()
logger.info('{} reverted {} batches before starting catch up for '
'ledger {}'.format(self, r, ledger_id))
logger.trace('{} reverted {} batches before starting catch up for '
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is quite important, and not so common (only called before catchup, and each catchup requires attention).
I think it should have DEBUG level.

@@ -122,7 +122,7 @@ def __init__(self,

for sigName in self.signals:
try:
logger.debug("Setting handler for {}".format(sigName))
logger.trace("Setting handler for {}".format(sigName))
Copy link
Contributor

Choose a reason for hiding this comment

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

It must be at least DEBUG

@@ -745,7 +745,7 @@ def create3PCBatch(self, ledger_id):
rv = self.execute_hook(ReplicaHooks.CREATE_PPR, pre_prepare)
pre_prepare = rv if rv is not None else pre_prepare

self.logger.debug('{} created a PRE-PREPARE with {} requests for ledger {}'.format(
self.logger.trace('{} created a PRE-PREPARE with {} requests for ledger {}'.format(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have other DEBUG level entries where we log creation of a PRE-PREPARE by a Primary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have at least sends for any message logged, is it enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, absolutely

@ashcherbakov ashcherbakov merged commit 77e2127 into hyperledger:master Mar 27, 2018
@skhoroshavin skhoroshavin deleted the reduce-logs branch March 29, 2018 08:48
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.

2 participants