Skip to content

Commit 7cac962

Browse files
authored
fix: RoutableHandler to return handler's Enabled (#4)
Signed-off-by: András Jáky <[email protected]>
1 parent f892b89 commit 7cac962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type RoutableHandler struct {
4444

4545
// Implements slog.Handler
4646
func (h *RoutableHandler) Enabled(ctx context.Context, l slog.Level) bool {
47-
return true
47+
return h.handler.Enabled(ctx, l)
4848
}
4949

5050
// Implements slog.Handler

0 commit comments

Comments
 (0)