-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expose LogDiagnosticsState
#19323
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
Expose LogDiagnosticsState
#19323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasonable enough, but I'd be more comfortable merging this with a test verifying that this can be changed at runtime.
@alice-i-cecile updated the existing |
@benfrankel is this workable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving because this resolves the linked issue. I skimmed the code but have not done an in-depth review.
Objective
Closes #19175
Make
LogDiagnosticsState
public to be able to edit its filtersSolution
Make
LogDiagnosticsState
public and add methods to allow editing the duration and filterTesting
cargo run -p ci
Showcase
Updated

log_diagnostics
example