Skip to content

Conversation

@daniel-sanche
Copy link
Contributor

The library doesn't properly handle partial data from the metadata server. If the server returns some values, but None for others, the library will raise an error when it tries to log the None values

This PR addresses this by returning empty strings for any missing values, rather than None

Fixes #710

@daniel-sanche daniel-sanche requested review from a team as code owners January 31, 2023 19:36
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: logging Issues related to the googleapis/python-logging API. labels Jan 31, 2023
Copy link
Contributor

@losalex losalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding tests

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Feb 1, 2023
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 1, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 1, 2023
@daniel-sanche daniel-sanche merged commit dedaff9 into main Feb 1, 2023
@daniel-sanche daniel-sanche deleted the fix-710 branch February 1, 2023 23:27
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 googleapis/python-logging API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If VM metadata fetch fails in google.cloud.logging.Client.setup_logging(), all logging starts to fail

3 participants