diff --git a/src/log/slog/handler.go b/src/log/slog/handler.go index 8398b928c1..a73983cda3 100644 --- a/src/log/slog/handler.go +++ b/src/log/slog/handler.go @@ -253,6 +253,8 @@ func (h *commonHandler) withGroup(name string) *commonHandler { return h2 } +// handle is the internal implementation of Handler.Handle +// used by TextHandler and JSONHandler. func (h *commonHandler) handle(r Record) error { state := h.newHandleState(buffer.New(), true, "") defer state.free()