Skip to content

Commit

Permalink
Less log spam from imported libs (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i authored Mar 20, 2024
1 parent 5f8c4b4 commit a89dd40
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 @@ -64,6 +64,10 @@
)
from ops.pebble import Error, Layer, PathError, ProtocolError

# 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 a89dd40

Please sign in to comment.