ignore urllib3 warnings without gsa.py turning them off

This commit is contained in:
JJTech0130 2023-08-09 12:38:09 -04:00
parent d740f3bc6b
commit fc7e67dd09
No known key found for this signature in database
GPG Key ID: 23C92EBCCF8F93D6

View File

@ -18,6 +18,7 @@ logging.basicConfig(
# Set sane log levels
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger("py.warnings").setLevel(logging.ERROR) # Ignore warnings from urllib3
logging.getLogger("asyncio").setLevel(logging.WARNING)
logging.getLogger("jelly").setLevel(logging.INFO)
logging.getLogger("nac").setLevel(logging.INFO)
@ -27,6 +28,8 @@ logging.getLogger("ids").setLevel(logging.DEBUG)
logging.getLogger("bags").setLevel(logging.INFO)
logging.getLogger("imessage").setLevel(logging.DEBUG)
logging.captureWarnings(True)
# Try and load config.json
try:
with open("config.json", "r") as f: