Skip to content

Commit

Permalink
Less log spam from imported libs (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i authored Mar 20, 2024
1 parent 35a1eec commit 02d3312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)


Expand Down

0 comments on commit 02d3312

Please sign in to comment.