mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 03:15:08 +00:00
feat(logging): add debug_requests flag and aggregate subtitle-conversion logs
This commit is contained in:
@@ -44,6 +44,10 @@ def main(version: bool, debug: bool) -> None:
|
||||
if debug_logging_enabled:
|
||||
init_debug_logger(enabled=True)
|
||||
|
||||
if debug and not config.debug_requests:
|
||||
for noisy in ("urllib3", "urllib3.connectionpool", "requests", "rnet", "httpx", "httpcore", "hpack", "h2"):
|
||||
logging.getLogger(noisy).setLevel(logging.WARNING)
|
||||
|
||||
urllib3.disable_warnings(InsecureRequestWarning)
|
||||
|
||||
traceback.install(console=console, width=80, suppress=[click])
|
||||
|
||||
Reference in New Issue
Block a user