We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f85cb commit 679c707Copy full SHA for 679c707
1 file changed
pyarchivefile_py3.py
@@ -338,8 +338,6 @@ def _wrap(stream):
338
try:
339
import requests
340
haverequests = True
341
- logging.getLogger("httpx").setLevel(logging.WARNING)
342
- logging.getLogger("httpcore").setLevel(logging.WARNING)
343
except Exception:
344
pass
345
@@ -392,6 +390,18 @@ def _wrap(stream):
392
390
393
391
394
+NOISY_LOGGERS = (
+ "httpx",
395
+ "httpcore",
396
+ "h2",
397
+ "hpack",
398
+ "urllib3",
399
+ "requests",
400
+)
401
+
402
+for name in NOISY_LOGGERS:
403
+ logging.getLogger(name).setLevel(logging.WARNING)
404
+ logging.getLogger(name).disabled = True
405
406
ftpssl = True
407
0 commit comments