diff --git a/Html/apps/services/asectrl_service.py b/Html/apps/services/asectrl_service.py
index 9680b60..a05e1a4 100644
--- a/Html/apps/services/asectrl_service.py
+++ b/Html/apps/services/asectrl_service.py
@@ -26,8 +26,8 @@ def on_connect_to_ase(client, entry, init_data, **kwargs):
'''
此时刚刚建立好aseclient连接,并向前端发送打开code-server-like指令。
'''
- namespace_entry, ase_client = entry
- print("on_connect_to_ase", init_data)
+ namespace_entry, ase_client, logger = entry
+ logger.info("on_connect_to_ase", init_data)
namespace_entry.emit('open-iframe',"", room=init_data['room'], namespace='/agent')
namespace_entry.emit('message', "Agents服务已连接, 加载教案中", room=init_data['room'], namespace='/agent')
namespace_entry.emit('message', f'{init_data}', room=init_data['room'], namespace='/agent')
diff --git a/Html/apps/sockets/namespaces.py b/Html/apps/sockets/namespaces.py
index 332add9..84bc7d2 100644
--- a/Html/apps/sockets/namespaces.py
+++ b/Html/apps/sockets/namespaces.py
@@ -168,7 +168,7 @@ class AgentNamespace(Namespace):
user_uuid2ase_client[user_uuid].register_on_connect_entry(
callback=on_connect_to_ase,
- entry=(self, user_uuid2ase_client[user_uuid]),
+ entry=(self, user_uuid2ase_client[user_uuid], current_app.logger),
init_data={'room':user_uuid, 'restart':restart}
)
user_uuid2ase_client[user_uuid].register_route_with_entry(