File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 13
13
- name : Install Go
14
14
uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
15
15
with :
16
- go-version : 1.20 .x
16
+ go-version : 1.21 .x
17
17
- name : Add GOBIN to PATH
18
18
run : echo "PATH=$(go env GOPATH)/bin:$PATH" >>$GITHUB_ENV
19
19
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ func NewLogr(handler slog.Handler) logr.Logger {
40
40
return logr .FromSlogHandler (handler )
41
41
}
42
42
43
+ // NewSlogHandler returns a slog.Handler which writes to the same sink as the logr.Logger.
44
+ //
45
+ // Deprecated: use [logr.ToSlogHandler] instead.
46
+ func NewSlogHandler (logger logr.Logger ) slog.Handler {
47
+ return logr .ToSlogHandler (logger )
48
+ }
49
+
43
50
// ToSlogHandler returns a slog.Handler which writes to the same sink as the logr.Logger.
44
51
//
45
52
// Deprecated: use [logr.ToSlogHandler] instead.
You can’t perform that action at this time.
0 commit comments