From 2131dcafa7e3586de7c76919b2eae181732203b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20K=C3=BChnel?= Date: Thu, 5 Dec 2024 11:03:33 +0100 Subject: [PATCH] feat(FleetTelemetryWebSocketService): Improve logging why fleet telemetry disconnects --- .../Server/Services/FleetTelemetryWebSocketService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeslaSolarCharger/Server/Services/FleetTelemetryWebSocketService.cs b/TeslaSolarCharger/Server/Services/FleetTelemetryWebSocketService.cs index 8a28987eb..80ace55ec 100644 --- a/TeslaSolarCharger/Server/Services/FleetTelemetryWebSocketService.cs +++ b/TeslaSolarCharger/Server/Services/FleetTelemetryWebSocketService.cs @@ -79,7 +79,7 @@ await existingClient.WebSocketClient.SendAsync(segment, WebSocketMessageType.Tex continue; } - logger.LogInformation("Websocket Client for car {vin} is not open or last heartbeat is too old. Disposing client", car.Vin); + logger.LogInformation("Websocket Client State for car {vin} is {state}, last heartbeat is {lastHeartbeat} while earliest Possible Heartbeat is {earliestPossibleHeartbeat}. Disposing client", car.Vin, existingClient.WebSocketClient.State, existingClient.LastReceivedHeartbeat, earliestPossibleLastHeartbeat); existingClient.WebSocketClient.Dispose(); Clients.Remove(existingClient); }