Source commit: 47f500ea73e39c55f8c845432f1aa0f2ad87f46d
@@ -54,6 +54,7 @@ namespace WinSCP
(Depth == _depth))
{
result = false;
+ Session.Logger.WriteLineLevel(1, "Element {0} read to the end", _token);
_read = true;
}
@@ -116,6 +116,14 @@ namespace WinSCP
+ public void WriteLineLevel(int level, string line, params object[] args)
+ {
+ if (LogLevel >= level)
+ WriteLine(line, args);
+ }
+
private static int GetThread()
return Thread.CurrentThread.ManagedThreadId;