[downloader:http] improve error logging when releasing connection
This commit is contained in:
@@ -306,8 +306,8 @@ class HttpDownloader(DownloaderBase):
|
|||||||
except (RequestException, SSLError, OpenSSLError) as exc:
|
except (RequestException, SSLError, OpenSSLError) as exc:
|
||||||
print()
|
print()
|
||||||
self.log.debug(
|
self.log.debug(
|
||||||
"Unable to consume response body (%s); "
|
"Unable to consume response body (%s: %s); "
|
||||||
"closing the connection anyway", exc)
|
"closing the connection anyway", exc.__class__.__name__, exc)
|
||||||
response.close()
|
response.close()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user