Skip to content

Commit daf2807

Browse files
committed
Correctly pass through replay logger
1 parent 9d80d14 commit daf2807

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/workflowstate/replaylogger.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
)
77

88
type replayHandler struct {
9-
state *WfState
10-
hander slog.Handler
9+
state *WfState
10+
handler slog.Handler
1111
}
1212

1313
// Enabled implements slog.Handler.
1414
func (rh *replayHandler) Enabled(ctx context.Context, level slog.Level) bool {
15-
return rh.hander.Enabled(ctx, level)
15+
return rh.handler.Enabled(ctx, level)
1616
}
1717

1818
// Handle implements slog.Handler.
@@ -21,17 +21,17 @@ func (rh *replayHandler) Handle(ctx context.Context, r slog.Record) error {
2121
return nil
2222
}
2323

24-
return rh.Handle(ctx, r)
24+
return rh.handler.Handle(ctx, r)
2525
}
2626

2727
// WithAttrs implements slog.Handler.
2828
func (rh *replayHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
29-
return rh.WithAttrs(attrs)
29+
return rh.handler.WithAttrs(attrs)
3030
}
3131

3232
// WithGroup implements slog.Handler.
3333
func (rh *replayHandler) WithGroup(name string) slog.Handler {
34-
return rh.WithGroup(name)
34+
return rh.handler.WithGroup(name)
3535
}
3636

3737
var _ slog.Handler = (*replayHandler)(nil)

0 commit comments

Comments
 (0)