Skip to content

Commit bd2fa5d

Browse files
committed
Use the managed thread id as identifier in our trace messages.
1 parent 31b2019 commit bd2fa5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Diagnostics;
2+
using System.Threading;
23

34
namespace Renci.SshNet.Abstractions
45
{
@@ -25,7 +26,7 @@ public static bool IsEnabled(TraceEventType traceEventType)
2526
public static void Log(string text)
2627
{
2728
#if FEATURE_DIAGNOSTICS_TRACESOURCE
28-
Loggging.TraceEvent(TraceEventType.Verbose, 1, text);
29+
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, text);
2930
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
3031
}
3132
}

0 commit comments

Comments
 (0)