[downloader:http] change log message level to 'debug'
This commit is contained in:
@@ -38,11 +38,12 @@ class HttpDownloader(DownloaderBase):
|
|||||||
if self.retries < 0:
|
if self.retries < 0:
|
||||||
self.retries = float("inf")
|
self.retries = float("inf")
|
||||||
if self.rate:
|
if self.rate:
|
||||||
self.rate = text.parse_bytes(self.rate)
|
rate = text.parse_bytes(self.rate)
|
||||||
if not self.rate:
|
if not rate:
|
||||||
self.log.warning("Invalid rate limit specified")
|
self.log.warning("Invalid rate limit (%r)", self.rate)
|
||||||
elif self.rate < self.chunk_size:
|
elif rate < self.chunk_size:
|
||||||
self.chunk_size = self.rate
|
self.chunk_size = rate
|
||||||
|
self.rate = rate
|
||||||
|
|
||||||
def download(self, url, pathfmt):
|
def download(self, url, pathfmt):
|
||||||
try:
|
try:
|
||||||
@@ -124,10 +125,10 @@ class HttpDownloader(DownloaderBase):
|
|||||||
if not offset:
|
if not offset:
|
||||||
mode = "w+b"
|
mode = "w+b"
|
||||||
if filesize:
|
if filesize:
|
||||||
self.log.info("Unable to resume partial download")
|
self.log.debug("Unable to resume partial download")
|
||||||
else:
|
else:
|
||||||
mode = "r+b"
|
mode = "r+b"
|
||||||
self.log.info("Resuming download at byte %d", offset)
|
self.log.debug("Resuming download at byte %d", offset)
|
||||||
|
|
||||||
# start downloading
|
# start downloading
|
||||||
self.out.start(pathfmt.path)
|
self.out.start(pathfmt.path)
|
||||||
|
|||||||
Reference in New Issue
Block a user