log/slog: ReplaceAttr called with Group attribute, contradicting the docs #62731
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
The Documention for slog.HandlerOptions.ReplaceAttr reads:
However, ReplaceAttr is indeed called with a Group attribute if -- and only if -- the Value is the result of resolving a LogValuer.
Either the call should not happen, or the documentation should mention this exception.
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?
https://go.dev/play/p/uCI04fkKVIq
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: