We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e257f31 commit f0985bdCopy full SHA for f0985bd
Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift
@@ -341,13 +341,14 @@ extension Ocp1Connection {
341
}
342
343
func onMonitorError(id: Int, _ error: Error) async throws {
344
+ logger.trace("monitor task \(id) error: \(error)")
345
+
346
if _connectionState.value != .notConnected {
347
// don't update connection state if we were explicitly disconnected
348
_updateConnectionState(error.ocp1ConnectionState)
349
350
351
if _automaticReconnect, error._isRecoverableConnectionError {
- logger.trace("monitor task \(id) disconnecting: \(error)")
352
try await _disconnectDeviceAfterConnectionFailure()
353
Task.detached { try await self.reconnectDeviceWithBackoff() }
354
0 commit comments