Skip to content

Commit 4585b53

Browse files
authored
Switch to structured logging for received messages (#1697)
Replaced string interpolation with structured logging in the debug log statement for received WebSocket messages, following user logging preferences.
1 parent 7a6bb35 commit 4585b53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SIPSorcery/net/WebRTC/WebRTCWebSocketPeerAspNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private async Task StartReceivingAsync(CancellationToken cancellationToken)
194194
private async Task OnMessage(WebSocketReceiveResult receiveResult, byte[] buffer)
195195
{
196196
string message = Encoding.UTF8.GetString(buffer, 0, receiveResult.Count);
197-
_logger.LogDebug($"Received message: {message}");
197+
_logger.LogDebug("Received message: {Message}", message);
198198

199199
if (RTCIceCandidateInit.TryParse(message, out var iceCandidateInit))
200200
{

0 commit comments

Comments
 (0)