Skip to content

Commit

Permalink
log message tags
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois committed Aug 20, 2024
1 parent e0a9c51 commit cd06220
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/cluster/Server/ClusterUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public static void IOCallback(this ILogger logger, uint errorCode, uint numBytes
{
if (errorCode != 0)
{
string errorMessage = new Win32Exception((int)errorCode).Message;
logger.LogError("OverlappedStream GetQueuedCompletionStatus error: {errorCode} msg: {errorMessage}", errorCode, errorMessage);
var errorMessage = new Win32Exception((int)errorCode).Message;
logger.LogError("[ClusterUtils] OverlappedStream GetQueuedCompletionStatus error: {errorCode} msg: {errorMessage}", errorCode, errorMessage);
}
((SemaphoreSlim)context).Release();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Threading;
Expand Down Expand Up @@ -426,7 +427,8 @@ private unsafe void IOCallback(uint errorCode, uint numBytes, object context)
{
if (errorCode != 0)
{
logger?.LogError("OverlappedStream GetQueuedCompletionStatus error: {0}", errorCode);
var errorMessage = new Win32Exception((int)errorCode).Message;
logger?.LogError("[DeviceLogManager] OverlappedStream GetQueuedCompletionStatus error: {errorCode} msg: {errorMessage}", errorCode, errorMessage);
}
semaphore.Release();
}
Expand Down

0 comments on commit cd06220

Please sign in to comment.