Skip to content
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

Moving away from using the root logger everywhere #9099

Merged
merged 2 commits into from
Feb 8, 2020

Conversation

craig-rueda
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

logging.xxx() has the effect of logging directly to the ROOT logger regardless of the module that's writing out the given message. Instead of following this pattern, it's best practice to instead fetch the logger for each module at init and then use it for all logging within said module. This allows for tuning of log levels on a per module basis.

Test Plan

I intend to deploy to testing environment and verify logs. This may also affect log messages when runing CLI, so that should be looked at as well.

REVIEWERS

Copy link
Member

@suddjian suddjian left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

I'm surprised I never noticed this, thanks for fixing!

@mistercrunch mistercrunch merged commit 607cfd1 into apache:master Feb 8, 2020
@mistercrunch mistercrunch deleted the craig/loggers branch February 8, 2020 07:38
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants