From e3550c5e6e4bf4abc00e52e16005ac9ab8909724 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sun, 30 Jun 2024 19:51:12 +0800 Subject: [PATCH] Decreased log level for Shuffle pongs as it's spammy and I no longer need to track this so closely as the issues with it have been mostly fixed. Also cleaned up some remnants from the copy paste job --- KfChatDotNetKickBot/Services/Shuffle.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/KfChatDotNetKickBot/Services/Shuffle.cs b/KfChatDotNetKickBot/Services/Shuffle.cs index 0c62e22..b671f34 100644 --- a/KfChatDotNetKickBot/Services/Shuffle.cs +++ b/KfChatDotNetKickBot/Services/Shuffle.cs @@ -98,7 +98,7 @@ public class Shuffle : IDisposable private void WsDisconnection(DisconnectionInfo disconnectionInfo) { - _logger.Error($"Client disconnected from the chat (or never successfully connected). Type is {disconnectionInfo.Type}"); + _logger.Error($"Client disconnected from Shuffle (or never successfully connected). Type is {disconnectionInfo.Type}"); _logger.Error(disconnectionInfo.Exception); OnWsDisconnection?.Invoke(this, disconnectionInfo); } @@ -112,13 +112,7 @@ public class Shuffle : IDisposable _logger.Debug(initPayload); _wsClient.SendInstant(initPayload).Wait(_cancellationToken); } - - // Stream start JSON - // {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"server_time\":1718631487,\"play_delay\":0,\"type\":\"stream-up\"}"}} - // View count update (every 30 seconds) - // {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631500.636146,\"viewers\":62}"}} - // {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631530.654308,\"viewers\":162}"}} - // {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631560.551188,\"viewers\":179}"}} + private void WsMessageReceived(ResponseMessage message) { if (message.Text == null) @@ -147,7 +141,7 @@ public class Shuffle : IDisposable if (packetType == "pong") { - _logger.Info("Shuffle pong packet"); + _logger.Debug("Shuffle pong packet"); return; }