Skip to content

Commit 586e6a8

Browse files
committed
Disable log in DEBUG build
1 parent 0fb1fc7 commit 586e6a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ExtensionService/XPCController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ final class XPCController: XPCServiceDelegate {
4040
try await Task.sleep(nanoseconds: 60_000_000_000)
4141
} catch {
4242
try await Task.sleep(nanoseconds: 1_000_000_000)
43+
#if DEBUG
44+
// No log, but you should run CommunicationBridge, too.
45+
#else
4346
Logger.service
4447
.error("Failed to connect to bridge: \(error.localizedDescription)")
48+
#endif
4549
}
4650
}
4751
}

0 commit comments

Comments
 (0)