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:
barelyprofessional
2024-06-30 20:02:05 +08:00
parent a865730918
commit 83a5e149ef
6 changed files with 6 additions and 5 deletions

View File

@@ -409,6 +409,7 @@ public class KickBot
private void OnKfWsDisconnected(object sender, DisconnectionInfo disconnectionInfo)
{
_logger.Error($"Sneedchat disconnected due to {disconnectionInfo.Type}");
_logger.Error(JsonSerializer.Serialize(disconnectionInfo));
}
private void OnKfWsReconnected(object sender, ReconnectionInfo reconnectionInfo)