diff --git a/src/dns_exporter/entrypoint.py b/src/dns_exporter/entrypoint.py index 0b2d191..a0f66ee 100644 --- a/src/dns_exporter/entrypoint.py +++ b/src/dns_exporter/entrypoint.py @@ -121,6 +121,9 @@ def main(mockargs: list[str] | None = None) -> None: # also configure the root logger rootlogger = logging.getLogger("") rootlogger.setLevel(level) + # httpx is noisy at INFO + if logger.isEnabledFor(logging.INFO): + logging.getLogger('httpx').setLevel(logging.WARNING) logger.info( f"dns_exporter v{DNSExporter.__version__} starting up - logging at level {level}", )