Fix iOS Logger

This commit is contained in:
realWLF
2024-02-10 04:42:58 +03:30
parent 3716ec049e
commit 5c8aaaf8c2
2 changed files with 23 additions and 47 deletions

View File

@@ -86,7 +86,7 @@ class VPNManager: ObservableObject {
do {
try await loadVPNPreference()
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
}
@@ -107,7 +107,7 @@ class VPNManager: ObservableObject {
try await newManager.loadFromPreferences()
self.manager = newManager
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
}
@@ -117,7 +117,7 @@ class VPNManager: ObservableObject {
try await manager.saveToPreferences()
try await manager.loadFromPreferences()
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
}
@@ -157,7 +157,7 @@ class VPNManager: ObservableObject {
}
try await self?.loadVPNPreference()
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
}
}.store(in: &cancelBag)
@@ -188,7 +188,7 @@ class VPNManager: ObservableObject {
}
}
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
}
@@ -202,7 +202,7 @@ class VPNManager: ObservableObject {
"DisableMemoryLimit": (disableMemoryLimit ? "YES" : "NO") as NSString,
])
} catch {
LogsEventHandler.shared.writeLog(error.localizedDescription)
print(error.localizedDescription)
}
connectTime = .now
}