From a31d5affd792188b0d1668b4e775b94be517a15c Mon Sep 17 00:00:00 2001 From: msl Date: Sun, 17 May 2026 01:19:36 +0300 Subject: [PATCH] fix(gateway): add missing logger definition to prevent NameError in _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. --- hermes_cli/gateway.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.py index a865bcaf8b..c5303e3279 100644 --- a/hermes_cli/gateway.py +++ b/hermes_cli/gateway.py @@ -5,6 +5,7 @@ Handles: hermes gateway [run|start|stop|restart|status|install|uninstall|setup] """ import asyncio +import logging import os import shutil import signal @@ -38,6 +39,7 @@ from hermes_cli.setup import ( ) from hermes_cli.colors import Colors, color +logger = logging.getLogger(__name__) # ============================================================================= # Process Management (for manual gateway runs)