Skip to content

Commit

Permalink
Debug errors on websocket closure
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Nov 21, 2024
1 parent 9e31bd5 commit 689f2de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Common/Websocket/WebsockBaseController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Net.Mime;
using System.Net.WebSockets;
using System.Text.Json;
using System.Threading.Channels;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
Expand Down Expand Up @@ -166,7 +167,7 @@ private async Task MessageLoop()
}
catch (Exception e)
{
Logger.LogError(e, "Error while sending message to client");
Logger.LogError(e, "Error while sending message to client - {Msg}", JsonSerializer.Serialize(msg));
throw;
}
}
Expand Down

0 comments on commit 689f2de

Please sign in to comment.