mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Use the managed thread id as identifier in our trace messages.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
|
||||
namespace Renci.SshNet.Abstractions
|
||||
{
|
||||
@@ -25,7 +26,7 @@ namespace Renci.SshNet.Abstractions
|
||||
public static void Log(string text)
|
||||
{
|
||||
#if FEATURE_DIAGNOSTICS_TRACESOURCE
|
||||
Loggging.TraceEvent(TraceEventType.Verbose, 1, text);
|
||||
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, text);
|
||||
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user