mirror of
https://github.com/apple/swift-log
synced 2026-11-25 03:57:48 +00:00
### Motivation: `Logger.MetadataValue.attributes` documents the setter as a no-op for `.dictionary` and `.array`, but it calls `assertionFailure` there. Debug builds trap, release builds do the documented no-op. ### Modifications: Doc comment only. The assertion stays; the comment now says setting attributes on a collection value is a programmer error, that debug builds assert and release builds leave the value unchanged, and to set attributes on the leaf values instead. ### Result: The documentation matches the code. No behaviour change. Found by an automated audit loop (Claude); patch and description reviewed by me.