浏览代码

Log raised exception.

drieseng 9 年之前
父节点
当前提交
9f67d3d7eb
共有 1 个文件被更改,包括 3 次插入0 次删除
  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();