diff --git a/log/handler.go b/log/handler.go index 56eff6671f..9c98552e7c 100644 --- a/log/handler.go +++ b/log/handler.go @@ -77,9 +77,9 @@ func (h *TerminalHandler) Handle(_ context.Context, r slog.Record) error { h.mu.Lock() defer h.mu.Unlock() buf := h.format(h.buf, r, h.useColor) - h.wr.Write(buf) + _, err := h.wr.Write(buf) h.buf = buf[:0] - return nil + return err } func (h *TerminalHandler) Enabled(_ context.Context, level slog.Level) bool {