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 {
|
switch $0 {
|
||||||
case .literal(let s):
|
case .literal(let s):
|
||||||
return s
|
return s
|
||||||
|
#if DEBUG
|
||||||
|
case .interpolated(let s):
|
||||||
|
return s
|
||||||
|
#else
|
||||||
case .interpolated(_):
|
case .interpolated(_):
|
||||||
return "<redacted>"
|
return "<redacted>"
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}.joined(separator: "")
|
}.joined(separator: "")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue