From 7923f844fadb1f2c0e0377f87f990aee6651a869 Mon Sep 17 00:00:00 2001 From: zccyman <16263913+zccyman@users.noreply.github.com> Date: Mon, 18 May 2026 19:33:25 -0700 Subject: [PATCH] fix: include hermes_plugins in gateway.log component filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gateway.log uses a _ComponentFilter that only passes records from loggers starting with ('gateway',). Plugin modules are loaded under the hermes_plugins.* namespace, so all plugin log output is silently dropped from gateway.log. This makes plugin registration — which directly affects gateway hooks (pre_gateway_dispatch, transform_llm_output, etc.) — invisible in the gateway-specific log. Operators debugging gateway behavior check gateway.log and see no plugin activity, even when plugins are working correctly. Add 'hermes_plugins' to the gateway component prefixes tuple so plugin log messages appear in gateway.log. Closes #28138 --- hermes_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_logging.py b/hermes_logging.py index 8d16e653c71..2de105b2d9e 100644 --- a/hermes_logging.py +++ b/hermes_logging.py @@ -141,7 +141,7 @@ class _ComponentFilter(logging.Filter): # Logger name prefixes that belong to each component. # Used by _ComponentFilter and exposed for ``hermes logs --component``. COMPONENT_PREFIXES = { - "gateway": ("gateway",), + "gateway": ("gateway", "hermes_plugins"), "agent": ("agent", "run_agent", "model_tools", "batch_runner"), "tools": ("tools",), "cli": ("hermes_cli", "cli"),