diff options
Diffstat (limited to 'lib/thandy/download.py')
-rwxr-xr-x | lib/thandy/download.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/thandy/download.py b/lib/thandy/download.py index 52c6fe4..c2a9e61 100755 --- a/lib/thandy/download.py +++ b/lib/thandy/download.py @@ -13,6 +13,8 @@ import thandy.util import thandy.socksurls import thandy.checkJson +from thandy.util import logCtrl + class BadCompoundData(thandy.DownloadError): """DOCDOC""" pass @@ -514,6 +516,7 @@ class DownloadJob: total += len(c) logging.debug("Got %s/%s bytes from %s", total, expectLength, url) + logCtrl("DOWNLOAD", TOTAL=str(total), EXPECT=str(expectLength), URL=url) if self._wantLength != None and total > self._wantLength: logging.warn("Read too many bytes from %s; got %s, but " "wanted %s", url, total, self._wantLength) |