Fix untested logging snippet examples.#3219
Conversation
dhermes
left a comment
There was a problem hiding this comment.
"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?
| .. 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.
| 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.pyand they had a couple small syntax issues.