allow disabling logging silencing

This commit is contained in:
Nexus 2024-02-23 23:16:49 +00:00
parent 5a0070957f
commit fae8edb043
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -44,6 +44,7 @@ logging.basicConfig(
format="%(asctime)s:%(levelname)s:%(name)s:%(message)s",
datefmt="%d/%m/%Y %H:%M:%S"
)
if os.getenv("LOG_DEBUG_TIDY") != "1":
logging.getLogger("httpcore.connection").setLevel(logging.INFO)
logging.getLogger("httpcore.http11").setLevel(logging.INFO)
logging.getLogger("httpx").setLevel(logging.INFO)