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

Use hex_debug, skip_if and custom_derive_debug where appropriate. #2884

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

afck
Copy link
Contributor

@afck afck commented Nov 13, 2024

Motivation

Our debug logs are very noisy because some Vec<u8>s are printed using the standard derived Debug, and they print every field, even ones that are e.g. only interesting if they are Some. We also have several hand-written Debug impls that could be derived.

Proposal

Use hex_debug, skip_if and custom_debug_derive where appropriate.

Test Plan

This doesn't change the logic; CI should catch any regressions. If we notice that debug output is still too noisy we can make further changes in the future.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@afck afck merged commit cd5b90f into linera-io:main Nov 13, 2024
21 checks passed
@afck afck deleted the debug branch November 13, 2024 18:38
@@ -332,120 +348,10 @@ where
}
}

impl<Context> Debug for ChainWorkerRequest<Context>
Copy link
Contributor

Choose a reason for hiding this comment

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

@afck Thank you so much for removing all this boiler

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