Skip to content

fix: include hermes_plugins in gateway.log component filter#28196

Closed
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/gateway-log-plugin-prefix-28138
Closed

fix: include hermes_plugins in gateway.log component filter#28196
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/gateway-log-plugin-prefix-28138

Conversation

@zccyman

@zccyman zccyman commented May 18, 2026

Copy link
Copy Markdown
Contributor

Problem

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.

Closes #28138

Fix

Add "hermes_plugins" to the gateway COMPONENT_PREFIXES tuple in hermes_logging.py.

Files Changed

  • hermes_logging.py — 1 line: ("gateway",)("gateway", "hermes_plugins")

Testing

  • Pure logging config tuple change, no behavioral logic modified
  • No test changes needed — the filter mechanism is unchanged, only the prefix list expanded

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 NousResearch#28138
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have labels May 18, 2026

@outsourc-e outsourc-e left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed locally. Tiny logging-prefix fix, py_compile passed, and a direct _ComponentFilter smoke check confirms gateway filtering now includes hermes_plugins.* while still excluding agent.*. Good merge candidate.

@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #28313 (cherry-picked onto current main with your authorship preserved via rebase-merge — commit 7923f84). Thanks for the contribution!

@teknium1 teknium1 closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: gateway.log component filter excludes hermes_plugins.* loggers — plugin registration messages invisible

4 participants