[downloader:http] improve error logging when releasing connection

This commit is contained in:
ClosedPort22
2023-03-31 20:08:38 +08:00
parent 1a977f0f62
commit 775d2ac999

View File

@@ -306,8 +306,8 @@ class HttpDownloader(DownloaderBase):
except (RequestException, SSLError, OpenSSLError) as exc:
print()
self.log.debug(
"Unable to consume response body (%s); "
"closing the connection anyway", exc)
"Unable to consume response body (%s: %s); "
"closing the connection anyway", exc.__class__.__name__, exc)
response.close()
@staticmethod