Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

fix: properly handle None from metadata server#718

Merged
daniel-sanche merged 6 commits intomainfrom
fix-710
Feb 1, 2023
Merged

fix: properly handle None from metadata server#718
daniel-sanche merged 6 commits intomainfrom
fix-710

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

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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