Selaa lähdekoodia

Log raised exception.

drieseng 9 vuotta sitten
vanhempi
sitoutus
9f67d3d7eb
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/Renci.SshNet/SubsystemSession.cs

+ 3 - 0
src/Renci.SshNet/SubsystemSession.cs

@@ -2,6 +2,7 @@
 using System.Globalization;
 using System.Text;
 using System.Threading;
+using Renci.SshNet.Abstractions;
 using Renci.SshNet.Channels;
 using Renci.SshNet.Common;
 
@@ -170,6 +171,8 @@ namespace Renci.SshNet
         {
             _exception = error;
 
+            DiagnosticAbstraction.Log("Raised exception: " + error);
+
             var errorOccuredWaitHandle = _errorOccuredWaitHandle;
             if (errorOccuredWaitHandle != null)
                 errorOccuredWaitHandle.Set();