Skip to content

fix(gateway): add module logger and unblock PR 27246 - #27249

Closed
psyduckler wants to merge 4 commits into
NousResearch:mainfrom
psyduckler:fix/pr-27246-merge-conflict
Closed

fix(gateway): add module logger and unblock PR 27246#27249
psyduckler wants to merge 4 commits into
NousResearch:mainfrom
psyduckler:fix/pr-27246-merge-conflict

Conversation

@psyduckler

Copy link
Copy Markdown

Summary

  • Re-applies fix(gateway): add module-level logger to gateway.py (salvage #27154) #27246 on top of current main
  • Resolves the scripts/release.py AUTHOR_MAP merge conflict by keeping both the PR's author-map entries and the new batch salvage entries from main
  • Fixes the blocking ruff enforcement failure in hermes_cli/send_cmd.py by adding an explicit UTF-8 encoding to Path.read_text(...)

Validation

  • python -m ruff check . → pass
  • ./scripts/run_tests.sh tests/hermes_cli/test_gateway.py -q → 28 passed
  • ./scripts/run_tests.sh tests/hermes_cli/test_send_cmd.py -q → 20 passed

Supersedes/unsticks #27246; original upstream PR branch could not be pushed to from my auth context.

0xchainer and others added 4 commits May 16, 2026 20:27
…all_platforms

hermes_cli/gateway.py:3702 referenced logger.debug() but 'logger' was
never defined in the module, causing a NameError at runtime if the
try/except around discover_plugins() caught an exception.

Added import logging and logger = logging.getLogger(__name__)
at module level to resolve the undefined name.
…ousResearch#27154)

Verify that the module has a logger instance with the correct name,
preventing regression of the NameError fixed in a31d5af.
@psyduckler

Copy link
Copy Markdown
Author

Closing: opened against the wrong repo/PR context. Please ignore.

@psyduckler psyduckler closed this May 17, 2026
@psyduckler
psyduckler deleted the fix/pr-27246-merge-conflict branch May 17, 2026 03:40
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins labels May 17, 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 P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants