-
Notifications
You must be signed in to change notification settings - Fork 806
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
Unify the server logs and the gokit logging. #870
Conversation
f96a91a
to
db27c66
Compare
Testing & this works nicely - we get decent logs from the servers again. |
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.
Looks ok; one nit.
Also I'm not clear what replaced AllowedLevel
, but that's mostly curiosity.
Please rebase on the updated weaveworks/common
pkg/util/log.go
Outdated
// This code copy-pasted from prometheus/common/promlog.New() | ||
l := log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr)) | ||
l = al.Filter(l) | ||
logger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr)) |
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.
Is the comment still correct? ("This code copy-pasted from prometheus/common/promlog.New()")
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.
Not in any meaningful way, no. Will remove.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Thats basically replaced with https://github.com/weaveworks/common/blob/master/logging/level.go |
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Can I interpret "Looks ok" as LGTM? :-) |
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.
I notice kuberesolver was updated; don't know what difference that makes.
Good catch. Let me look into that, as there hasn't been semver on that repo before, and a bunch of breaking changes have gone in... |
Looks safe to me - its pre v2 (when the API changed) and pretty much only adds a change by you, Bryan! |
I missed that the metric I filed weaveworks/promrus#11 |
Fixes #835
Also tidies up the
prometheusLogger
(which keep metrics on number of log lines per level). Probably want to move this into common.Depends on weaveworks/common#96, so start there first