Skip to content

Remove google.cloud.logging from package #76

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged

Conversation

copybara-service[bot]
Copy link

Remove google.cloud.logging from package

It should be up to the workload whether structured logs and integration with Cloud Logging is used.

In addition, google.cloud.logging.Client.setup_logging() was being called after other logs were made via dependencies. These other logs would create a StreamHandler that prints logs to stderr since no handler existed. Then setup_logging would add a StructuredLogHandler meaning there were two handlers resulting in duplicate logs.

It should be up to the workload whether structured logs and integration with Cloud Logging is used.

In addition, `google.cloud.logging.Client.setup_logging()` was being called after other logs were made via dependencies. These other logs would create a `StreamHandler` that prints logs to stderr since no handler existed. Then `setup_logging` would add a `StructuredLogHandler` meaning there were two handlers resulting in duplicate logs.

PiperOrigin-RevId: 751175001
@copybara-service copybara-service bot merged commit 29c53b7 into main Apr 24, 2025
4 checks passed
@copybara-service copybara-service bot deleted the test_751170764 branch April 24, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant