From 64c95d24f0aab42b26cab0c2262274d0ea2eaa85 Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Sun, 21 May 2023 15:34:43 +0100 Subject: [PATCH] log/slog: JSONHandler doesn't use special source format Fixes #60329 Change-Id: Idb19da4830fa14c459bedbf143d550ce7c1dfdbd Reviewed-on: https://go-review.googlesource.com/c/go/+/496815 Reviewed-by: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam Reviewed-by: Alan Donovan TryBot-Result: Gopher Robot --- src/log/slog/json_handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/log/slog/json_handler.go b/src/log/slog/json_handler.go index ec25771245..cebcfba45a 100644 --- a/src/log/slog/json_handler.go +++ b/src/log/slog/json_handler.go @@ -66,8 +66,7 @@ func (h *JSONHandler) WithGroup(name string) Handler { // and the value of [Level.String] is output. // // If the AddSource option is set and source information is available, -// the key is "source" -// and the value is output as "FILE:LINE". +// the key is "source", and the value is a record of type [Source]. // // The message's key is "msg". // -- 2.50.0