commit 83b69660bd2b173f77e6a728014b9484e4812694
parent 3f224cd918c04385cc4966f45d990cc56026f6f7
Author: Michael Camilleri <[email protected]>
Date: Thu, 14 May 2026 07:55:36 +0900
Update length of log history
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Crossmate/Services/DebuggingMonitors.swift b/Crossmate/Services/DebuggingMonitors.swift
@@ -192,7 +192,7 @@ final class SyncMonitor {
private(set) var entries: [SyncDiagnosticEntry] = []
private(set) var snapshot: SyncEngine.DiagnosticSnapshot?
- private let maxEntries = 80
+ private let maxEntries = 300
func recordStart(_ phase: String) {
append(level: "info", "Starting \(phase)")
diff --git a/Crossmate/Views/DiagnosticsView.swift b/Crossmate/Views/DiagnosticsView.swift
@@ -175,6 +175,7 @@ struct DiagnosticsView: View {
lines.append("Last Error Domain: \(syncMonitor.lastErrorDomain ?? "None")")
lines.append("Last Error Code: \(syncMonitor.lastErrorCode.map(String.init) ?? "None")")
lines.append("Last Error Description: \(syncMonitor.lastErrorDescription ?? "None")")
+ lines.append("Recent Event Count: \(syncMonitor.entries.count)")
lines.append("")
lines.append("Recent Events:")
for entry in syncMonitor.entries {