-
Notifications
You must be signed in to change notification settings - Fork 227
added option to limit logging by level in Flask #344
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
Conversation
docs/flask.asciidoc
Outdated
@@ -143,6 +143,18 @@ from elasticapm.contrib.flask import ElasticAPM | |||
apm = ElasticAPM(app, logging=True) |
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.
logging=True
seems like a footgun. I'd rather lead with the explanation of logging=logging.ERROR
and then mention that you can do logging=True
to get everything incl. the nice warning that you currently have below the logging=logging.ERROR
example.
It's also worth considering to completely stop mentioning logging=True
. Setting logging=logging.DEBUG
has the same effect and is more obviously a footgun.
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.
That makes the docs ten times better! 👍
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 besides a tiny docs nit pick 👍
Looks like adding |
merged in e05afc4 |
fixes #342
fixes #343