-
Notifications
You must be signed in to change notification settings - Fork 27
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
more loglevel info #152
more loglevel info #152
Conversation
adds log.Info to address issue #151
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
+ Coverage 36.16% 36.32% +0.15%
==========================================
Files 10 10
Lines 683 680 -3
==========================================
Hits 247 247
+ Misses 397 394 -3
Partials 39 39
Continue to review full report at Codecov.
|
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.
i would prefer to notify the user with a single line of message, like:
log.Infof("[ENVMAN] added %s: %s", key, value)
@@ -213,6 +213,8 @@ func add(c *cli.Context) error { | |||
|
|||
if err := addEnv(key, value, expand, replace, skipIfEmpty); err != nil { | |||
log.Fatal("[ENVMAN] Failed to add env:", err) | |||
} else { | |||
log.Infof("[ENVMAN] added %s: %s", key, value) |
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.
A single log line.
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.
Done.
Hey @markhu 👋 Just dig myself into this change and I have couple of concerns about it.
Thanks for your response! |
The |
@markhu So could you please move this log into a higher log level? |
Hey @markhu ! Closing the issue as we didn't receive response about the review. Feel free to re-open or contact us any time of you want to move forward with it! 🙂 Happy Building! 🚀 |
adds log.Info to address issue #151