-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
logger: disable state logging by default #2332
Comments
perhaps creating & using |
@casperdcl could you explain a little bit more? I'm not sure where the user should set the |
|
Ohh got it 👍 yep, that's what I purposed first on the linked issue:
I like this idea better instead of using the env var |
though really I'd prefer |
@casperdcl is this more common? I'm more used to the v's 😅 Even the >>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--verbose', '-v', action='count')
>>> parser.parse_args(['-vvv'])
Namespace(verbose=3) |
the problem with counting |
@casperdcl so, it would start on 🤔 let's wait for the opinion of @shcheklein, @efiop , @Suor , @pared (need some quorum on this one, can't decide by myself) |
I am ok with counting So my preference: implement |
Awesome, @Suor , I'll add those implementation details to the description. |
* logger: initial verbosity/quiet counts Fixes #2332 * actually use TRACE * logger: properly patch in trace * FATAL -> CRITICAL * only change log level if not info Makes testing easier * tests: logger: fix and update * state: logger: debug => trace * logger: filter duplicate debug messages
Use different levels of verbosity as suggested by this comment: logger: disable state logging by default #2332 (comment)
Add a
TRACE
level to the logging moduleChange
logger.debug(x)
->logger.log(TRACE, x)
Related: #2329
The text was updated successfully, but these errors were encountered: