diff --git a/app.py b/app.py index 4491690..5bc6056 100644 --- a/app.py +++ b/app.py @@ -92,6 +92,10 @@ _event_handler.setFormatter( logging.Formatter("%(asctime)s %(levelname)s %(name)s [%(request_id)s] %(message)s") ) logging.basicConfig(level=os.environ.get("BGFILTER_LOG_LEVEL", "INFO"), handlers=[_event_handler]) +# httpx logs one INFO line per outbound request (full presigned image_url included); +# that is per-request noise on the prose stream -- the access JSONL already records +# the URL. Keep only its warnings/errors. +logging.getLogger("httpx").setLevel(logging.WARNING) logger = logging.getLogger("bgfilter.app") ACCESS_LOG_PATH = os.environ.get("BGFILTER_ACCESS_LOG", "").strip()