mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: NIOAny is used extensively across SwiftNIO but can't be reasonably debugged. Users may want to simply call String(describing: CustomStringConvertible) to inspect what is the data they are working with at the moment instead of seeing an output that has no debug value. Modifications: Conform NIOAny to CustomStringConvertible, along with other types it currently uses that lacked string representation. Result: Users can perform simple debugging by printing their NIOAny object.