Use the managed thread id as identifier in our trace messages.

This commit is contained in:
drieseng
2016-08-23 18:26:43 +02:00
parent 31b2019fe4
commit bd2fa5d16f
@@ -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
}
}