Skip to content

Commit

Permalink
Switch connection exception logging to debug
Browse files Browse the repository at this point in the history
This change avoids the log spam resulting from the client
closing ConfigService connections uncleanly.
  • Loading branch information
thesprockee committed Jan 27, 2024
1 parent dd76e9a commit 788c0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EchoRelay.Core/Server/Services/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ internal async Task HandleConnection(HttpListenerContext context, WebSocket webS
try {
await webSocket.CloseAsync(WebSocketCloseStatus.InternalServerError, "", CancellationToken.None);
} catch {}
Log.Warning("An exception occurred while handling a websocket connection: {0}", e);
Log.Debug("An exception occurred while handling a websocket connection: {0}", e);
}
finally
{
Expand Down

0 comments on commit 788c0b4

Please sign in to comment.