🔊 Add websocket logger back

This commit is contained in:
2025-08-17 00:19:16 +08:00
parent d3752caf1d
commit bb4e04df0b

View File

@@ -65,8 +65,7 @@ public class WebSocketController(WebSocketService ws, ILogger<WebSocketContext>
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex is not WebSocketException) logger.LogError(ex, "WebSocket disconnected with user @{UserName}#{UserId} and device #{DeviceId} unexpectedly");
logger.LogError(ex, "WebSocket disconnected with user @{UserName}#{UserId} and device #{DeviceId} unexpectedly");
} }
finally finally
{ {