]> Cypherpunks repositories - gostls13.git/commitdiff
log/slog: JSONHandler doesn't use special source format
authorSean Liao <sean@liao.dev>
Sun, 21 May 2023 14:34:43 +0000 (15:34 +0100)
committerJonathan Amsterdam <jba@google.com>
Tue, 23 May 2023 20:22:03 +0000 (20:22 +0000)
Fixes #60329

Change-Id: Idb19da4830fa14c459bedbf143d550ce7c1dfdbd
Reviewed-on: https://go-review.googlesource.com/c/go/+/496815
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/log/slog/json_handler.go

index ec25771245f2328e31c819e2270ea554600e482c..cebcfba45ac66a2ee8424699d24dd6d70bb37dd3 100644 (file)
@@ -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".
 //