浏览代码

More console communication logging

Source commit: 0d9bc47a159c88a81aab1b9597abbd89be37ac89
Martin Prikryl 9 年之前
父节点
当前提交
2eaab7ac92
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      dotnet/internal/ExeSessionProcess.cs

+ 5 - 0
dotnet/internal/ExeSessionProcess.cs

@@ -336,6 +336,10 @@ namespace WinSCP
                 {
                     e.Result = e.Break;
                 }
+
+                _logger.WriteLine(
+                    "Options: [{0}], Timer: [{1}], Timeouting: [{2}], Timeouted: [{3}], Break: [{4}], Result: [{5}]",
+                    e.Options, e.Timer, e.Timeouting, e.Timeouted, e.Break, e.Result);
             }
         }
 
@@ -420,6 +424,7 @@ namespace WinSCP
 
         private void ProcessPrintEvent(ConsolePrintEventStruct e)
         {
+            _logger.WriteLineLevel(1, string.Format(CultureInfo.CurrentCulture, "Print: {0}", e.Message));
             Print(e.FromBeginning, e.Message);
         }