-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Allow overriding the log level in debug mode. #3050
Allow overriding the log level in debug mode. #3050
Conversation
933dc5b
to
07aa112
Compare
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
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.
Hello @timoreimann .
Many thanks for this very useful PR 👏
Can you update the documentation :
- By precising that
logLevel
will be turned inDEBUG
mode only iflogLevel
is not specified (in the sentenceAdditionally, the log level will be set to DEBUG.
) - By replacing
(--debug switch)
by(--logLevel DEBUG switch)
inIf applicable, please paste the log output in debug mode (--debug switch)
Thanks!
@nmengin good catch -- updated. |
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
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 🎉
Enabling the debug mode caused the log level to be hard-wired to DEBUG. We change the behavior so that an explicitly defined log level always overrides. One primary motivation is to allow pprof-based benchmarking without excessive DEBUG logging distorting the results. We also remove a piece of code from SetEffectiveConfiguration which was never effective because the log level would already be set previously.
17c975b
to
0675ac2
Compare
What does this PR do?
Allow overriding the log level in debug mode.
Motivation
Enabling the debug mode caused the log level to be hard-wired to DEBUG. We change the behavior so that an explicitly defined log level always overrides.
One primary motivation is to allow pprof-based benchmarking without excessive DEBUG logging distorting the results.
Additional Notes
We also remove a piece of code from
SetEffectiveConfiguration
which was never effective because the log level would already be set previously.Fixes #2968.