Implement leveled logging - #895
Conversation
|
Should we update the helm charts and manifests to add the |
Agreed and added. What do you think about using |
|
On my phone, but I think I would bump many debug to info, all the ones that show a change in the system. The most spam comes from memberlist, then service sync I think. |
|
@champtar
The operations that inform about a change/update etc. are now using the info level. |
champtar
left a comment
There was a problem hiding this comment.
Some nitpicks
After those changes LGTM
|
@champtar applied the changes you requested in the last 2 commits. Please check. |
|
And if you can squash your commits a bit that would be perfect :) |
a70abc5 to
a0f2162
Compare
|
@russellb did you delete some of your reviews ? I got email notification that I can't find in here |
yeah, sorry. Commented on some, changed my mind, deleted, and now going back through and will post them all together as a single "review". I probably should have just replied to myself on here. |
russellb
left a comment
There was a problem hiding this comment.
This looks good to me. I spotted one additional message I would have chosen debug, but the rest looked good. I started taking notes on messages I'd like to change in follow-ups but stopped since none of them are really related to these changes.
| c.syncFuncs = append(c.syncFuncs, c.epInformer.HasSynced) | ||
| } else { | ||
| c.logger.Log("op", "New", "msg", "using endpoint slices") | ||
| level.Info(c.logger).Log("op", "New", "msg", "using endpoint slices") |
There was a problem hiding this comment.
Endpoint slices are still new in MetalLB so it's a good information to have in bug report for now IMO.
There was a problem hiding this comment.
I guess so, but it's an implementation detail that shouldn't matter unless something is broken (like many other debug logs).
Like you said, it's just 1 line so I don't feel that strongly ...
There was a problem hiding this comment.
Should I do this change? Or you can do it directly.
|
... CI doesn't seem to have run on this PR? I have no idea why. |
Signed-off-by: Utku Ozdemir <uoz@protonmail.com>
Signed-off-by: Utku Ozdemir <uoz@protonmail.com>
25e1592 to
77907ab
Compare
|
I pushed a rebase of this PR to the branch to try to trigger CI and it seems to have worked |
Signed-off-by: Utku Ozdemir <uoz@protonmail.com>
|
Some of my changes seems to have disappeared - I think it was caused by the rebase somehow, but not sure. I have (re)pushed those changes in the latest commit. |
I apologize if I overwrote something. I thought I was up to date from your branch before I did the rebase. In any case, it seems CI is running (and passing) now. FWIW, I saw those same failures locally when I pulled down this PR to test it, so maybe those build fixes hadn't been pushed? |
No problem at all. I just think Or it might be my squash that made it disappear 🤔 But anyway, doesn't matter - all back in their place now :) |
|
I'm trying to build this locally to look at logs and it's failing. Any idea why? |
|
It was fixed by my last commit: 93208e2 Specifically, by the rename Can you delete your local branch and checkout again the remote branch? Might help. |
oops, you're right. :-D thanks |
|
OK, last request, I think ... would you mind adding an entry to the "New Features" section of the release notes about this? I would note that leveled logging is now supported, what the default behavior using our helm chart or manifests, and how someone would go about changing it as needed. See |
Signed-off-by: Utku Ozdemir <uoz@protonmail.com>
Done, but feel free to change the wording as you see fit. |
looks good to me. Thank you for all of your work! |
|
Thanks! Happy to contribute :) |
|
@utkuozdemir, thanks for the fix. @russellb, are you going to release this in near future? |
|
I'll probably wait a bit. We just did a feature release (0.10) pretty recently, so I figure we'd wait a bit longer to get some other stuff in first. |
|
Thank you for all the good work on Metallb. We're using it heavily to support science in the UK at Diamond Light Source! |
v0.11.0 according to the milestone and release date have not been announced what I know of. disclaimer: I am not part of metallb project |
|
It's really long-waited fix for big amounts of users, please release. |
|
Still get about 10 million logs per day from metallb so this would really offload our logging infrastructure! <3 |
Signed-off-by: Utku Ozdemir uoz@protonmail.com
This PR implements leveled logging. I set the levels as I've seen fit by looking at their messages - any feedbacks are appreciated.
Fixes #254
Fixes #655