mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
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.
This commit is contained in:
parent
305a466b1b
commit
a95356a9fd
1 changed files with 4 additions and 3 deletions
|
|
@ -1448,14 +1448,15 @@ namespace PepperDash.Essentials.WebSocketServer
|
||||||
|
|
||||||
if (!socket.IsAlive)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.Send(message);
|
socket.Send(message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.LogWarning("Unable to find client with ID: {clientId}", clientId);
|
this.LogDebug("Unable to find client with ID: {clientId}", clientId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue