diff --git a/log/handler_glog.go b/log/handler_glog.go index b465e44cb4..a0245cd70e 100644 --- a/log/handler_glog.go +++ b/log/handler_glog.go @@ -170,7 +170,7 @@ func (h *GlogHandler) handle(ctx context.Context, r slog.Record, origin slog.Han // Fast path: cache hit if lvl, ok := cfg.cache.Load(r.PC); ok { if lvl.(slog.Level) <= r.Level { - return h.origin.Handle(ctx, r) + return origin.Handle(ctx, r) } return nil } @@ -191,7 +191,7 @@ func (h *GlogHandler) handle(ctx context.Context, r slog.Record, origin slog.Han // Handle the message. if lvl <= r.Level { - return h.origin.Handle(ctx, r) + return origin.Handle(ctx, r) } return nil }