-
Notifications
You must be signed in to change notification settings - Fork 104
Replacing log15 by go-kit/log #33
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
Conversation
- Switched logging from log15 to go-kit/log with logging level -- Switched from a global logger to a passed & shared one -- Using contextualized logging instead of repeating the "clientId" - Removed capitalized errors
- Switched logging from log15 to go-kit/log with logging level -- Switched from a global logger to a passed & shared one -- Using contextualized logging instead of repeating the "clientId" - Removed capitalized errors
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 !
server/server.go
Outdated
| } | ||
|
|
||
| log15.Info("Starting...") | ||
| level.Info(server.Logger).Log("msg", "Starting...", "action", "ftp.starting") |
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.
As "msg" is duplicated on several places it could be extracted as package level constant. It won't remove the duplication actually, but will decouple name from code.
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.
Yep, that's true. It doesn't make it smaller / more manageable but easier to track and manage in an IDE. That's worth trying anyway.
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
clientId