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

fix: remove duplicate stream handler#106

Merged
daniel-sanche merged 2 commits intomasterfrom
streamhandler
Dec 2, 2020
Merged

fix: remove duplicate stream handler#106
daniel-sanche merged 2 commits intomasterfrom
streamhandler

Conversation

@daniel-sanche
Copy link
Contributor

Remove extra StreamHandler. This was resulting in duplicate logs showing up on many GCP environments.
I tested this manually on our supported environments, and removing this doesn't have any negative impacts, and makes GKE and GAE standard much more usable

Fixes #38 🦕

@daniel-sanche daniel-sanche requested a review from a team November 24, 2020 19:32
@daniel-sanche daniel-sanche requested a review from a team as a code owner November 24, 2020 19:32
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/python-logging API. label Nov 24, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 24, 2020
@daniel-sanche daniel-sanche self-assigned this Nov 24, 2020
@daniel-sanche daniel-sanche added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Nov 24, 2020
Copy link

@chetan chetan left a comment

Choose a reason for hiding this comment

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

LGTM! I saw this issue as well. Alternatively, I was able to workaround this issue with the following - logging.getLogger().handlers.pop()

@daniel-sanche daniel-sanche merged commit eb5cf40 into master Dec 2, 2020
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. cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to omit logging.StreamHandler during setup

3 participants