Skip to content

Commit 64c95d2

Browse files
seankhliaojba
authored andcommitted
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 <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Alan Donovan <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent be91040 commit 64c95d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/log/slog/json_handler.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ func (h *JSONHandler) WithGroup(name string) Handler {
6666
// and the value of [Level.String] is output.
6767
//
6868
// If the AddSource option is set and source information is available,
69-
// the key is "source"
70-
// and the value is output as "FILE:LINE".
69+
// the key is "source", and the value is a record of type [Source].
7170
//
7271
// The message's key is "msg".
7372
//

0 commit comments

Comments
 (0)