From: Sean Liao Date: Sun, 21 May 2023 14:34:43 +0000 (+0100) Subject: log/slog: JSONHandler doesn't use special source format X-Git-Tag: go1.21rc1~319 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=64c95d24f0aab42b26cab0c2262274d0ea2eaa85;p=gostls13.git 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 --- 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". //