]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/networking/_requests.py
[cleanup] Misc (#8510)
[yt-dlp.git] / yt_dlp / networking / _requests.py
index fe3f60b0b3ac2031acb8abbe6f38bfbdfa0ffbcf..9fb1d75f4a39c3e6c76235d4acc75406e31633fc 100644 (file)
@@ -255,7 +255,8 @@ def __init__(self, *args, **kwargs):
         handler.setFormatter(logging.Formatter('requests: %(message)s'))
         handler.addFilter(Urllib3LoggingFilter())
         logger.addHandler(handler)
-        logger.setLevel(logging.WARNING)
+        # TODO: Use a logger filter to suppress pool reuse warning instead
+        logger.setLevel(logging.ERROR)
 
         if self.verbose:
             # Setting this globally is not ideal, but is easier than hacking with urllib3.