Explorar o código

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

https://winscp.net/tracker/1487

Source commit: 29cedf259b20c512e384c1c0fc96dad11eb13812
Martin Prikryl %!s(int64=8) %!d(string=hai) anos
pai
achega
13e469c36c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
         }