diff --git a/src/charm.py b/src/charm.py index 4d267feb..e5a6988b 100755 --- a/src/charm.py +++ b/src/charm.py @@ -77,6 +77,10 @@ CA_CERT_PATH = f"{PROMETHEUS_DIR}/ca.cert" WEB_CONFIG_PATH = f"{PROMETHEUS_DIR}/prometheus-web-config.yml" +# To keep a tidy debug-log, we suppress some DEBUG/INFO logs from some imported libs, +# even when charm logging is set to a lower level. +logging.getLogger("httpx").setLevel(logging.WARNING) +logging.getLogger("httpcore").setLevel(logging.WARNING) logger = logging.getLogger(__name__)