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

update checkpoint config and fix log crashes #1420

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

charithabandi
Copy link
Contributor

No description provided.

jchappelow
jchappelow previously approved these changes Feb 26, 2025
Copy link
Member

@jchappelow jchappelow left a 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?

Comment on lines +37 to +54
case *blockProposal:
return cm.Msg.(*blockProposal).String()
case *blockAnnounce:
return cm.Msg.(*blockAnnounce).String()
case *vote:
return cm.Msg.(*vote).String()
Copy link
Member

@jchappelow jchappelow Feb 26, 2025

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

Copy link
Contributor Author

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.

@jchappelow
Copy link
Member

conflicts, but will approve again

@charithabandi charithabandi merged commit ad4ee84 into kwilteam:main Feb 27, 2025
2 checks passed
@charithabandi charithabandi deleted the checkpoint branch February 27, 2025 17: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