Skip to content

Remove google.cloud.logging from package#76

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_751170764
Apr 24, 2025
Merged

Remove google.cloud.logging from package#76
copybara-service[bot] merged 1 commit into
mainfrom
test_751170764

Conversation

@copybara-service
Copy link
Copy Markdown

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