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

Log block import source #5738

Merged
merged 9 commits into from
May 15, 2024
Merged

Conversation

eserilev
Copy link
Collaborator

@eserilev eserilev commented May 8, 2024

Issue Addressed

Closes #5721

Proposed Changes

Add a source tag to block import logs to indicate where the imported block came from. Options are Lookup, Gossip, RangeSync and HttpApi

@eserilev eserilev added ready-for-review The code is ready for review UX-and-logs labels May 8, 2024
@eserilev
Copy link
Collaborator Author

eserilev commented May 8, 2024

image example logs

Copy link
Collaborator

@dapplion dapplion left a comment

Choose a reason for hiding this comment

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

Thank you for implementing this!

@@ -3048,6 +3055,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
"Beacon block imported";
"block_root" => ?block_root,
"block_slot" => block_slot,
"source" => block_source.to_string(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should able to do this if you implement display

"source" => %block_source,

@jmcph4
Copy link
Member

jmcph4 commented May 9, 2024

image example logs

Love this!

@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented May 15, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 6636167

mergify bot added a commit that referenced this pull request May 15, 2024
@mergify mergify bot merged commit 6636167 into sigp:unstable May 15, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review UX-and-logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants