Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
debug(location): add diagnostic logger calls around gmaps eager imports
trohitgab4833e48410
diff --git a/server/nodes/location/__init__.py b/server/nodes/location/__init__.pyindex 016bcc86..e2eeead7 100644--- a/server/nodes/location/__init__.py+++ b/server/nodes/location/__init__.py@@ -14,11 +14,43 @@ Self-registration on import:belt-and-braces approach makes the registration deterministic."""+from core.logging import get_loggerfrom services.plugin.service_factories import register_service_factoryfrom ._service import MapsService-from . import gmaps_create as _gmaps_create # noqa: F401 — side-effect: registers GmapsCreateNode-from . import gmaps_locations as _gmaps_locations # noqa: F401 — registers GmapsLocationsNode-from . import gmaps_nearby_places as _gmaps_nearby_places # noqa: F401 — registers GmapsNearbyPlacesNode++logger = get_logger(__name__)++# Diagnostic block: the previous CI run silently dropped the three+# gmaps registrations even though the eager imports below appeared+# to run. Log NODE_METADATA membership on either side of the eager+# imports so the next CI run reveals which side of the registration+# is broken. Remove once diagnosed.+import sys as _sys++logger.info(+ "[location] pre-eager-import sys.modules: "+ "gmaps_create=%s gmaps_locations=%s gmaps_nearby_places=%s",+ "nodes.location.gmaps_create" in _sys.modules,+ "nodes.location.gmaps_locations" in _sys.modules,+ "nodes.location.gmaps_nearby_places" in _sys.modules,+)+try:+ from . import gmaps_create as _gmaps_create # noqa: F401 — registers GmapsCreateNode+ from . import gmaps_locations as _gmaps_locations # noqa: F401 — registers GmapsLocationsNode+ from . import gmaps_nearby_places as _gmaps_nearby_places # noqa: F401 — registers GmapsNearbyPlacesNode+ logger.info("[location] eager imports succeeded")+except Exception:+ logger.exception("[location] eager imports raised")++from models.node_metadata import NODE_METADATA as _NM++logger.info(+ "[location] post-eager-import NODE_METADATA: "+ "gmaps_create=%s gmaps_locations=%s gmaps_nearby_places=%s",+ "gmaps_create" in _NM,+ "gmaps_locations" in _NM,+ "gmaps_nearby_places" in _NM,+)register_service_factory("maps", MapsService)