Don't redact api endpoints in debug

This commit is contained in:
Shadowfacts 2023-04-16 15:11:59 -04:00
parent 813d0433d6
commit 22fe1e8ab1
1 changed files with 5 additions and 0 deletions

View File

@ -33,8 +33,13 @@ public struct Endpoint: ExpressibleByStringInterpolation, CustomStringConvertibl
switch $0 {
case .literal(let s):
return s
#if DEBUG
case .interpolated(let s):
return s
#else
case .interpolated(_):
return "<redacted>"
#endif
}
}.joined(separator: "")
}