-
Notifications
You must be signed in to change notification settings - Fork 420
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
Removes inline os.Stdout as log output #5550
base: main
Are you sure you want to change the base?
Conversation
Plz fix the CI failures @mathetake |
yeah sorry done |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (52.63%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #5550 +/- ##
==========================================
+ Coverage 65.25% 65.36% +0.10%
==========================================
Files 213 213
Lines 34063 34067 +4
==========================================
+ Hits 22228 22268 +40
+ Misses 10500 10473 -27
+ Partials 1335 1326 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/retest |
great |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
dc5ff70
to
fe89f67
Compare
What type of PR is this?
refactor: removes inline os.Stdout as log output
What this PR does / why we need it:
This removes the (almost) remaining places where the logger is configured to use os.Stdout instead of the configured output inherited from the cobra command. Without this change, the logging destination is scattered randomly from the downstream user's perspective. This is a follow up on #5476 #5483 and eliminates almost all places using os.Stdout except for the global loggers in a few places plus the stdout for the standalone mode's Envoy process. The implementation should be agnostic to any io.Writer in reality and there shouldn't be any necessity to directly use os.Stdout for all cases.