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 by Bors] - Remove global logger #4749
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4749 +/- ##
=========================================
- Coverage 77.1% 76.9% -0.3%
=========================================
Files 255 259 +4
Lines 28886 29306 +420
=========================================
+ Hits 22284 22547 +263
- Misses 5209 5332 +123
- Partials 1393 1427 +34
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
bors merge |
## Motivation Using a global logger makes testing harder and logging configuration more complicated. This PR removes most uses of the global logger to address this. ## Changes - Instead of the global logger services now use their own logging instance, this should reduce the number of log lines produced by `0000.defaultLogger` - There are still a few places where the global logger is used, primarily the `common/types` package where it cannot be replaced without some bigger changes. Issue for this: #4751 ## Test Plan n/a ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed ## DevOps Notes <!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases --> - [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources) - [x] This PR does not affect public APIs - [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.) - [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
bors merge |
Already running a review |
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Motivation
Using a global logger makes testing harder and logging configuration more complicated. This PR removes most uses of the global logger to address this.
Changes
0000.defaultLogger
common/types
package where it cannot be replaced without some bigger changes. Issue for this: logging: remove global logger #4751Test Plan
n/a
TODO
DevOps Notes