mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Replaced logging of the disconnection exception as it basically never had any value. Serializing provides a lot more useful information including the reason the server sent
This commit is contained in:
@@ -92,7 +92,7 @@ public class KickWsClient
|
||||
private void WsDisconnection(DisconnectionInfo disconnectionInfo)
|
||||
{
|
||||
_logger.Error($"Client disconnected from the chat (or never successfully connected). Type is {disconnectionInfo.Type}");
|
||||
_logger.Error(disconnectionInfo.Exception);
|
||||
_logger.Error(JsonSerializer.Serialize(disconnectionInfo));
|
||||
OnWsDisconnection?.Invoke(this, disconnectionInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user