Skip to content

fix: consolidate logging setup#541

Merged
chingor13 merged 2 commits intogoogleapis:masterfrom
chingor13:unify-logger
May 12, 2020
Merged

fix: consolidate logging setup#541
chingor13 merged 2 commits intogoogleapis:masterfrom
chingor13:unify-logger

Conversation

@chingor13
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 commented May 12, 2020

When switching autosynth to use synthtool's git module, we transitively
load synthtool's logger setup which adds a log handler globally. This
causes logs to be emitted twice (with 2 different styles).

This consolidates the logging setup into a single helper and now both
autosynth's and synthtool's logger instance use the same configuration
(with different logger names).

This was included in #531, but can be standalone

When switching autosynth to use synthtool's git module, we transitively
load synthtool's logger setup which adds a log handler globally. This
causes logs to be emitted twice (with 2 different styles).

This consolidates the logging setup into a single helper and now both
autosynth's and synthtool's logger instance use the same configuration
(with different logger names).
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 12, 2020
@chingor13 chingor13 merged commit c585ac3 into googleapis:master May 12, 2020
@chingor13 chingor13 deleted the unify-logger branch May 12, 2020 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants