Skip to content

Commit aa22f62

Browse files
committed
log privacy
1 parent 678fabd commit aa22f62

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Coder Desktop/VPNLib/FileSync/FileSyncDaemon.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MutagenDaemon: FileSyncDaemon {
1616

1717
@Published public var state: DaemonState = .stopped {
1818
didSet {
19-
logger.info("daemon state changed: \(self.state.description)")
19+
logger.info("daemon state changed: \(self.state.description, privacy: .public)")
2020
}
2121
}
2222

@@ -72,7 +72,12 @@ public class MutagenDaemon: FileSyncDaemon {
7272
}
7373

7474
state = .running
75-
logger.info("mutagen daemon started, pid: \(self.mutagenProcess?.processIdentifier.description ?? "unknown")")
75+
logger.info(
76+
"""
77+
mutagen daemon started, pid:
78+
\(self.mutagenProcess?.processIdentifier.description ?? "unknown", privacy: .public)
79+
"""
80+
)
7681
}
7782

7883
private func connect() async throws(DaemonError) {
@@ -164,7 +169,7 @@ public class MutagenDaemon: FileSyncDaemon {
164169

165170
private nonisolated func logOutput(pipe: FileHandle) {
166171
if let line = String(data: pipe.availableData, encoding: .utf8), line != "" {
167-
logger.info("\(line)")
172+
logger.info("\(line, privacy: .public)")
168173
}
169174
}
170175
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy