Skip to content

Commit f2628fb

Browse files
Set httpx and httpcore logger level to WARNING (#898)
`httpx` and `httpcore` have noisy INFO & DEBUG level logs Co-authored-by: Dragomir Penev <[email protected]>
1 parent 1696d4a commit f2628fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/charm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
from utils import label2name, new_password
129129

130130
logger = logging.getLogger(__name__)
131+
logging.getLogger("httpx").setLevel(logging.WARNING)
132+
logging.getLogger("httpcore").setLevel(logging.WARNING)
131133

132134
PRIMARY_NOT_REACHABLE_MESSAGE = "waiting for primary to be reachable from this unit"
133135
EXTENSIONS_DEPENDENCY_MESSAGE = "Unsatisfied plugin dependencies. Please check the logs"

0 commit comments

Comments
 (0)