diff --git a/demo.py b/demo.py index b9793d0..ef522ff 100644 --- a/demo.py +++ b/demo.py @@ -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: