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

chore: add an error field to "Finished building block" #14696

Merged

Conversation

syjn99
Copy link
Contributor

@syjn99 syjn99 commented Dec 8, 2024

What type of PR is this?

Other

What does this PR do? Why is it needed?

time="2024-12-06 03:09:21" level=info msg="Finished building block" prefix="rpc/validator" sinceSlotStartTime=62.160091ms slot=5 validator=9658

This log indicates it successfully finished to build a block, but even if there's an error while building a block, this log is always printed. I added an error field when printing this log.

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@syjn99 syjn99 requested a review from a team as a code owner December 8, 2024 05:10
terencechain
terencechain previously approved these changes Dec 8, 2024
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Thanks - Good catch

auto-merge was automatically disabled December 10, 2024 01:02

Head branch was pushed to by a user without write access

@syjn99 syjn99 force-pushed the chore/finish-block-build-log branch from 018001c to 1a2bd9c Compare December 10, 2024 01:02
@syjn99 syjn99 changed the title chore: print "Finished building block" only when succeeded chore: add an error field to "Finished building block" Dec 11, 2024
Copy link
Member

@prestonvanloon prestonvanloon 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!

@prestonvanloon prestonvanloon added this pull request to the merge queue Dec 12, 2024
Merged via the queue into prysmaticlabs:develop with commit 1d8ffad Dec 12, 2024
15 checks passed
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.

3 participants