forked from shadowfacts/Tusker
Don't redact api endpoints in debug
This commit is contained in:
parent
813d0433d6
commit
22fe1e8ab1
|
@ -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: "")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue