Skip to content

Commit 2af868e

Browse files
authored
Partially revert "When writing a debug log, repeat logs about the local app state"
1 parent 4a76ab8 commit 2af868e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Signal/util/DebugLogs.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,7 @@ enum DebugLogs {
194194
}
195195

196196
static func uploadLogs() async throws(UploadDebugLogError) -> URL {
197-
// Phase 0. Log local info and flush any pending logs to disk.
198-
AppVersionImpl.shared.dumpToLog()
199-
DependenciesBridge.shared.db.read { tx in
200-
let accountManager = DependenciesBridge.shared.tsAccountManager
201-
if let localIdentifiers = accountManager.localIdentifiers(tx: tx) {
202-
let deviceId = accountManager.storedDeviceId(tx: tx)
203-
Logger.info("local ACI: \(localIdentifiers.aci), device ID: \(deviceId)")
204-
} else {
205-
let state = accountManager.registrationState(tx: tx)
206-
Logger.info("no local ACI! registration state: \(state.logString)")
207-
}
208-
}
197+
// Phase 0. Flush any pending logs to disk.
209198
if DebugFlags.internalLogging {
210199
KeyValueStore.logCollectionStatistics()
211200
}

0 commit comments

Comments
 (0)