fix(debug_logging_layer): remove access for variable pool

This commit is contained in:
-LAN- 2025-09-05 01:52:19 +08:00
parent 81e9d6f63a
commit 15b3443e9e
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF
1 changed files with 0 additions and 11 deletions

View File

@ -113,17 +113,6 @@ class DebugLoggingLayer(GraphEngineLayer):
# Log initial state
self.logger.info("Initial State:")
# Log inputs if available
if self.graph_runtime_state.variable_pool:
initial_vars: dict[str, Any] = {}
# Access the variable dictionary directly
for node_id, variables in self.graph_runtime_state.variable_pool.variable_dictionary.items():
for var_key, var in variables.items():
initial_vars[f"{node_id}.{var_key}"] = str(var.value) if hasattr(var, "value") else str(var)
if initial_vars:
self.logger.info(" Initial variables: %s", self._format_dict(initial_vars))
@override
def on_event(self, event: GraphEngineEvent) -> None:
"""Log individual events based on their type."""