Skip to content

Conversation

eserilev
Copy link
Member

@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
Member 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
Contributor

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
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.

4 participants