-
Notifications
You must be signed in to change notification settings - Fork 83
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
cmd: add init logger in printFlags #1277
Conversation
logLevel := flags.Lookup("log-level") | ||
logFmt := flags.Lookup("log-format") | ||
|
||
if logLevel != nil && logFmt != nil { |
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.
best not do two things at once, call this manually before printFlags
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.
sure
ca6b410
to
325b40a
Compare
Codecov ReportBase: 53.41% // Head: 53.80% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1277 +/- ##
==========================================
+ Coverage 53.41% 53.80% +0.38%
==========================================
Files 139 139
Lines 16356 16457 +101
==========================================
+ Hits 8737 8855 +118
+ Misses 6362 6340 -22
- Partials 1257 1262 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Inits logging as soon as log flags are parsed in printFlags function.
category: bug
ticket: #1272