-
Notifications
You must be signed in to change notification settings - Fork 130
Cleanup ibft logging levels #995
Cleanup ibft logging levels #995
Conversation
extraData, | ||
block.getHeader()); | ||
|
||
LOG.debug("Creating proposed block. round={}", roundState.getRoundIdentifier()); |
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.
nit: tempted to put a trace in here too with the additional info?
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.
done. Didn't think it was useful at debug level and it made the logs difficult to read. but at trace it's probably appropriate.
@@ -94,7 +94,7 @@ public RoundChangeManager( | |||
public Optional<Collection<RoundChange>> appendRoundChangeMessage(final RoundChange msg) { | |||
|
|||
if (!isMessageValid(msg)) { | |||
LOG.info("RoundChange message was invalid."); | |||
LOG.debug("RoundChange message was invalid."); |
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.
Why is an invalid RoundChange debug, but an invalid Proposal an info? (see IbftBlockHeightManager) - I think I prefer info in both places (this is an exceptional behaviour and we want to see it even normally)
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.
done
@@ -80,15 +80,13 @@ public boolean setProposedBlock(final Proposal msg) { | |||
public void addPrepareMessage(final Prepare msg) { | |||
if (!proposalMessage.isPresent() || validator.validatePrepare(msg)) { | |||
prepareMessages.add(msg); | |||
LOG.debug("Round state added prepare message prepare={}", msg); |
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.
nit: not even trace? ... maybe not ... (just want to confirm!)
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.
done. made it trace
PR description
Updating IBFT logging levels to make more consistent.
Debug level is now predominately about the state machine send, receives and quorums.
Info now also includes validation failures so that is visible.
Trace now alsol includes additional receives in parts of the state machine
Fixed Issue(s)