-
Notifications
You must be signed in to change notification settings - Fork 12
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
update checkpoint config and fix log crashes #1420
Conversation
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.
LGTM, just a question about the logs getting much longer.
Maybe we log the full msg string in Debug, and just the type in Info?
case *blockProposal: | ||
return cm.Msg.(*blockProposal).String() | ||
case *blockAnnounce: | ||
return cm.Msg.(*blockAnnounce).String() | ||
case *vote: | ||
return cm.Msg.(*vote).String() |
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 any of these Stringers get long? Switching the log from type to full string could get long?
It looks like in most cases we show the details elsewhere anyway? For example, without this log change:
2025-02-26 17:55:59.184 [INF] NODE: Accept proposal? {height=2823 blockID=80e82f7d1c7221352833b758b2623ebbe176a16f10894bd1aea8d06b151f14d8 prevHash=7222dbed39d06608a5c0d9847c04116d8995711732b3f27882f948eec96de2db from_peer=0226b3ff29216dac187cea393f8af685ad419ac9644e55dce83d145c8b1af213bd#secp256k1}
2025-02-26 17:55:59.185 [INF] NODE: processing block proposal {height=2823 hash=80e82f7d1c7221352833b758b2623ebbe176a16f10894bd1aea8d06b151f14d8 from=0226b3ff29216dac187cea393f8af685ad419ac9644e55dce83d145c8b1af213bd#secp256k1}
2025-02-26 17:55:59.185 [INF] CONS: Consensus message received {type=block_proposal sender=0226b3ff29216dac187cea393f8af685ad419ac9644e55dce83d145c8b1af213bd}
Related: #1349
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.
Will handle the sync logs issue in a different PR, need to think through that a bit.
c5b67f8
to
9b018da
Compare
conflicts, but will approve again |
9b018da
to
aabcba6
Compare
No description provided.