From f2f44478092998957d61f7e82824186422df065a Mon Sep 17 00:00:00 2001 From: viewit Date: Tue, 7 Jul 2026 01:12:30 +0200 Subject: [PATCH] chore: quiet aiohttp per-request access log Every HTTP request logged an INFO line via aiohttp's access logger, drowning out the bridge's own logs given the frontend's 2s poll interval. Raised the aiohttp.access logger threshold to WARNING. --- kobrax_moonraker_bridge.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kobrax_moonraker_bridge.py b/kobrax_moonraker_bridge.py index 2fd8c8a..988c07e 100644 --- a/kobrax_moonraker_bridge.py +++ b/kobrax_moonraker_bridge.py @@ -134,6 +134,10 @@ logging.basicConfig(level=logging.INFO, format="[%(asctime)s] %(levelname)-5s %(name)s: %(message)s", datefmt="%H:%M:%S") log = logging.getLogger("bridge") +# aiohttp logs one INFO line per HTTP request (access log) — with 2s frontend +# polling that drowns out the bridge's own logs. Raise its own threshold so +# only WARNING+ (actual problems) surface at the default log level. +logging.getLogger("aiohttp.access").setLevel(logging.WARNING) # Web UI: subdirectory under web/themes//index.html _UI_THEME_NAME_RE = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$")