From bd2fa5d16f61ea53d939320e970022b3b1bd377d Mon Sep 17 00:00:00 2001 From: drieseng Date: Tue, 23 Aug 2016 18:26:43 +0200 Subject: [PATCH] Use the managed thread id as identifier in our trace messages. --- src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs b/src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs index 844e70fa..a736c884 100644 --- a/src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs +++ b/src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs @@ -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 } }