-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Replace logging.SlogNopHandler
by slog.DiscardHandler
#37847
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
dfddb6d
to
2feeb5d
Compare
/test |
2feeb5d
to
45d4b33
Compare
Pushed an additional commit to bump Go to 1.24 in |
/test |
|
Looks like updating Go to 1.24 in
from https://github.com/cilium/cilium/actions/runs/13518990036/job/37774055591. Will move this PR to draft for the time being. |
Pull request was converted to draft
45d4b33
to
c591612
Compare
/test |
Split the Go update and corresponding test fixes into a separate PR for easier review: #37852 |
c591612
to
48ed649
Compare
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.
it's happening go.go go go go go ... (24 times)
48ed649
to
ca31c79
Compare
/test |
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.
@tklauser Nice! Thanks for this update.
The log/slog Go standard library package provides DiscardHandler since Go 1.24[^1]. Make use of it instead of duplicating it as logging.SlogNopHandler. [^1]: https://go.dev/doc/go1.24#logslogpkglogslog Signed-off-by: Tobias Klauser <tobias@cilium.io>
ca31c79
to
39da804
Compare
/test |
The
log/slog
Go standard library package providesDiscardHandler
since Go 1.241. Make use of it instead of duplicating it aslogging.SlogNopHandler
.Footnotes
https://go.dev/doc/go1.24#logslogpkglogslog ↩