https://winscp.net/tracker/1936 Source commit: 8641a5952d8b8d66cae7413f1f5344ce17c39c1c
@@ -93,7 +93,7 @@ namespace WinSCP
}
string logLevelSwitch = null;
- if (_session.DebugLogLevel > 0)
+ if (_session.DebugLogLevel != 0)
{
logLevelSwitch = string.Format(CultureInfo.InvariantCulture, "/loglevel={0} ", _session.DebugLogLevel);
@@ -407,7 +407,7 @@ namespace WinSCP
if ((value < -1) || (value > 2))
- throw WriteException(new ArgumentOutOfRangeException(string.Format(CultureInfo.CurrentCulture, "Logging level has to be in range 0-2")));
+ throw WriteException(new ArgumentOutOfRangeException(string.Format(CultureInfo.CurrentCulture, "Logging level has to be in range -1 to 2")));
_logLevel = value;