diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index 8532ae4..4f3d10d 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -108,7 +108,9 @@ def setup_logging(args, config): console_handler = logging.StreamHandler() console_handler.setFormatter(formatter) root.addHandler(console_handler) + # https://stackoverflow.com/questions/24344045/how-can-i-completely-remove-any-logging-from-requests-module-in-python?noredirect=1&lq=1 + logging.getLogger("urllib3").propagate = False requests_log = logging.getLogger("requests") requests_log.addHandler(logging.NullHandler()) requests_log.propagate = False