From 38926cc6e507ba622275de789800e74215117dec Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 28 Nov 2023 20:53:32 +0800 Subject: [PATCH] appease linter --- log/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/handler.go b/log/handler.go index d61ee452d4..ef1bcc1992 100644 --- a/log/handler.go +++ b/log/handler.go @@ -185,7 +185,7 @@ func builtinReplace(_ []string, attr slog.Attr, logfmt bool) slog.Attr { if logfmt { return slog.String("t", attr.Value.Time().Format(timeFormat)) } else { - return slog.Attr{"t", attr.Value} + return slog.Attr{Key: "t", Value: attr.Value} } } case slog.LevelKey: