From a95356a9fd490f636cdba2123c5b5496deff0876 Mon Sep 17 00:00:00 2001 From: Nick Genovese Date: Fri, 1 May 2026 10:05:57 -0400 Subject: [PATCH] fix: Lower log level for client disconnect and missing client Changed log severity from Error/Warning to Debug for client disconnect and missing client events to reduce log noise. --- .../WebSocketServer/MobileControlWebsocketServer.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PepperDash.Essentials.MobileControl/WebSocketServer/MobileControlWebsocketServer.cs b/src/PepperDash.Essentials.MobileControl/WebSocketServer/MobileControlWebsocketServer.cs index 3b55120f..8d46b0ff 100644 --- a/src/PepperDash.Essentials.MobileControl/WebSocketServer/MobileControlWebsocketServer.cs +++ b/src/PepperDash.Essentials.MobileControl/WebSocketServer/MobileControlWebsocketServer.cs @@ -429,7 +429,7 @@ namespace PepperDash.Essentials.WebSocketServer using (var sw = new StreamWriter(File.Open($"{userAppPath}{localConfigFolderName}{Global.DirectorySeparator}{appConfigFileName}", FileMode.Create, FileAccess.ReadWrite))) { - // Write the LAN application configuration file. Used when a request comes in for the application config from the LAN + // Write the LAN application configuration file. Used when a request comes in for the application config from the LAN var lanAdapterId = CrestronEthernetHelper.GetAdapterdIdForSpecifiedAdapterType(EthernetAdapterType.EthernetLANAdapter); this.LogDebug("LAN Adapter ID: {lanAdapterId}", lanAdapterId); @@ -1448,14 +1448,15 @@ namespace PepperDash.Essentials.WebSocketServer if (!socket.IsAlive) { - this.LogError("Unable to send message to client {id}. Client is disconnected: {message}", clientId, message); + this.LogDebug("Unable to send message to client {id}. Client is disconnected: {message}", clientId, message); return; } + socket.Send(message); } else { - this.LogWarning("Unable to find client with ID: {clientId}", clientId); + this.LogDebug("Unable to find client with ID: {clientId}", clientId); } } }