Commit 6dc39bfc authored by martin hou's avatar martin hou

fix: add logs

parent b500ae5d
......@@ -1032,7 +1032,11 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
}
self._progress_report[k] = true;
}
if (recvBytes == length)
if (percent >= 100)
{
Logger.debug('jensen', 'file-transfer', 'recv:' + recvBytes);
}
if (recvBytes >= length)
{
Logger.debug('jensen', 'file-transfer', 'current: 100%, ' + recvBytes);
onprogress?.(recvBytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment