Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Logging: Map stdlib loglevels to Stackdriver severity enum values.#8837

Merged
tseaver merged 7 commits intogoogleapis:masterfrom
tseaver:7213-logging-map-stdlib-loglevel-to-severity
Jul 31, 2019
Merged

Logging: Map stdlib loglevels to Stackdriver severity enum values.#8837
tseaver merged 7 commits intogoogleapis:masterfrom
tseaver:7213-logging-map-stdlib-loglevel-to-severity

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Jul 30, 2019

Rather than relying on logging.LogRecord.levelname, which can be changed to arbitrary values, map logging.LogRecord.levelno to the corresponding enum value.

Closes #7213.

tseaver added 2 commits July 30, 2019 18:24
Converts Python stdlb log levels to Stackdriver severity values.
@tseaver tseaver added the api: logging Issues related to the Cloud Logging API. label Jul 30, 2019
@tseaver tseaver requested review from busunkim96 and crwilcox July 30, 2019 22:29
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 30, 2019
@tseaver
Copy link
Contributor Author

tseaver commented Jul 30, 2019

The docs build failed on CircleCI due to a transient network issue (RTD down).

@busunkim96
Copy link
Contributor

Retriggered logging job

@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
tseaver added 2 commits July 31, 2019 13:24
Avoid excessive retries for NotFound.
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2019
@tseaver tseaver merged commit 52c89b6 into googleapis:master Jul 31, 2019
@tseaver tseaver deleted the 7213-logging-map-stdlib-loglevel-to-severity branch July 31, 2019 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logging: Crash if using non default log level names with CloudLoggingHandler

4 participants