log/slog: JSONHandler does not format the source attribute in conformance with its documentation #60329
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the program; https://go.dev/play/p/YVBdftehuQ7
What did you expect to see?
What did you see instead?
The docs;
go/src/log/slog/json_handler.go
Lines 68 to 70 in b950cc8
If the AddSource option is set and source information is available, the key is "source" and the value is output as "FILE:LINE".
The text was updated successfully, but these errors were encountered: