瀏覽代碼

Bug 1487: Allow setting debug logging level to 2 in .NET assembly

https://winscp.net/tracker/1487

Source commit: 29cedf259b20c512e384c1c0fc96dad11eb13812
Martin Prikryl 8 年之前
父節點
當前提交
13e469c36c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dotnet/internal/Logger.cs

+ 2 - 2
dotnet/internal/Logger.cs

@@ -303,9 +303,9 @@ namespace WinSCP
 
         private void SetLogLevel(int value)
         {
-            if ((value < 0) || (value > 1))
+            if ((value < 0) || (value > 2))
             {
-                throw new ArgumentOutOfRangeException(string.Format(CultureInfo.CurrentCulture, "Logging level has to be in range 0-1"));
+                throw new ArgumentOutOfRangeException(string.Format(CultureInfo.CurrentCulture, "Logging level has to be in range 0-2"));
             }
             _logLevel = value;
         }