-
Notifications
You must be signed in to change notification settings - Fork 370
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
Conversation
747d64e
to
7c08923
Compare
plenum/server/node.py
Outdated
@@ -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 ' |
There was a problem hiding this comment.
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.
7c08923
to
3b6fdec
Compare
stp_core/loop/looper.py
Outdated
@@ -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)) |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, absolutely
Signed-off-by: Sergey Khoroshavin <[email protected]>
3b6fdec
to
b7aed4e
Compare
Signed-off-by: Sergey Khoroshavin [email protected]