-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix untested logging snippet examples. #3219
Fix untested logging snippet examples. #3219
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.
"Fix untested snippet examples." doesn't keep them from being untested and breaking under future changes (or future changes in the library).
Do you have a plan to stabilize them further?
@@ -53,7 +53,7 @@ You can also exclude certain loggers: | |||
|
|||
.. code-block:: python | |||
|
|||
>>> setup_logging(handler, excluded_loggers=('werkzeug',))) | |||
>>> setup_logging(handler, excluded_loggers=('werkzeug',)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -117,7 +118,7 @@ def setup_logging(handler, excluded_loggers=EXCLUDED_LOGGER_DEFAULTS, | |||
|
|||
client = google.cloud.logging.Client() | |||
handler = CloudLoggingHandler(client) | |||
google.cloud.logging.setup_logging(handler) | |||
google.cloud.logging.handlers.setup_logging(handler) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I would love that to be a project soon, but it is not the project I gave him. :-) |
These snippets aren't covered in
logging_snippets.py
and they had a couple small syntax issues.