File tree Expand file tree Collapse file tree
.swiftpm/xcode/xcshareddata/xcschemes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 </BuildActionEntries >
2424 </BuildAction >
2525 <TestAction
26- buildConfiguration = " Release "
26+ buildConfiguration = " Debug "
2727 selectedDebuggerIdentifier = " Xcode.DebuggerFoundation.Debugger.LLDB"
2828 selectedLauncherIdentifier = " Xcode.DebuggerFoundation.Launcher.LLDB"
2929 shouldUseLaunchSchemeArgsEnv = " YES"
Original file line number Diff line number Diff line change @@ -177,11 +177,17 @@ public struct LogIntegerFormatting {
177177 LogPrivacy ( isPrivate: true , mask: mask)
178178 }
179179
180+ #if DEBUG
181+ internal static var disableRedaction : Bool = true
182+ #endif
183+
180184 internal static let redacted = " <redacted> "
181185 internal func value( for value: Any ) -> String {
182186 #if DEBUG
183- return String ( describing: value)
184- #else
187+ if LogPrivacy . disableRedaction {
188+ return String ( describing: value)
189+ }
190+ #endif
185191
186192 switch self {
187193 case . public:
@@ -191,6 +197,5 @@ public struct LogIntegerFormatting {
191197 default :
192198 return Self . redacted
193199 }
194- #endif
195200 }
196201}
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ final class PrivateTests: XCTestCase {
66 func testPrivate( ) {
77 let signed = - 3.14159265359
88 let unsigned = 3.14
9+ #if DEBUG
10+ LogPrivacy . disableRedaction = false
11+ #endif
912 let logging = TestLogging ( )
1013 LoggingSystem . bootstrapInternal ( logging. make)
1114
You can’t perform that action at this time.
0 commit comments