1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[common] emit logging messages for --write-pages files

This commit is contained in:
Mike Fährmann 2024-11-03 20:38:33 +01:00
parent cb0d8cae77
commit 390b8ddd3e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -654,6 +654,8 @@ class Extractor():
headers=(self._write_pages in ("all", "ALL")),
hide_auth=(self._write_pages != "ALL")
)
self.log.info("Writing '%s' response to '%s'",
response.url, path + ".txt")
except Exception as e:
self.log.warning("Failed to dump HTTP request (%s: %s)",
e.__class__.__name__, e)