-
Notifications
You must be signed in to change notification settings - Fork 46
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
editoast: reduce logging level to trace for some verbose events #9950
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #9950 +/- ##
==========================================
- Coverage 79.81% 79.79% -0.02%
==========================================
Files 1052 1052
Lines 105439 105439
Branches 727 727
==========================================
- Hits 84152 84139 -13
- Misses 21245 21258 +13
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Before reviewing or anything, have you consider using RUST_LOG=editoast_models=none
before changing the log level? I often realize that these kinds of PR comes from a problematic situation when debugging something... but for a specific case, which might not apply in all situations. I consider that these logs are about editoast_models
... and therefore, everything related to DB interactions have some interest, at least more than trace
in my opinion.
And probably the same applies for the core client, if it ends up being moved inside its own crate (but it's already its own module so actually, the argument might still already be valid).
🤓 I'm not saying no to this PR, I'm just asking a bit more to be convinced it's the right move.
I'm not 100% sure either, but the current situation still feels quite wrong to me. (Hence the "proposition PR", I don't mind closing it.) Actually, I cracked when I was trying to observe the DB interactions while testing the STDCM request logging feature. I couldn't spot the event of Besides:
Then I wonder what goes into the My take is that we must not have too much trouble finding I'm not saying I'm right or that we should do things this way, but I guess that's where I draw the line between Wdyt? |
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.
LGTM. I don't have a preference for the default log level.
I've been incapable to find a reasonable definition to separate |
Are demoted to trace level: * Query payloads sent to core * PG connection instrumentation Signed-off-by: Leo Valais <[email protected]>
Proposition PR.
Are demoted to trace level: