log clear session

This commit is contained in:
CakeCN
2025-12-11 20:46:22 +08:00
parent 97cda4031b
commit 140ece742e
3 changed files with 1 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ def clear_user_session(asengine_url, asengine_token, user_id):
} }
response = requests.post(clear_url, json=payload, headers=headers) response = requests.post(clear_url, json=payload, headers=headers)
response.raise_for_status() # 检查请求是否成功 response.raise_for_status() # 检查请求是否成功
print(f"User session {user_id} cleared successfully. Response: {response.json()}")
except Exception as e: except Exception as e:
print(f"Error clearing user session: {e}") print(f"Error clearing user session: {e}")

View File

@@ -24,7 +24,6 @@ def load_markdown_file(course_id, chapter_name, lesson_name):
break break
if file_link is None: if file_link is None:
return None return None
print(f"load_markdown_file: {file_link}")
return get_text_file(file_link) return get_text_file(file_link)
def convert_markdown_to_html(md_file: str) -> str: def convert_markdown_to_html(md_file: str) -> str:

View File

@@ -140,7 +140,6 @@ class AgentNamespace(Namespace):
if continue_learn: if continue_learn:
for _ in range(need_skip_chapters): for _ in range(need_skip_chapters):
chatmanager.next_chapter() chatmanager.next_chapter()
# 恢复对话历史到前端 - 使用批量发送消息列表 # 恢复对话历史到前端 - 使用批量发送消息列表
if chatmanager.chat_historys: if chatmanager.chat_historys:
emit('messages', chatmanager.chat_historys, room=user_uuid, namespace='/agent') emit('messages', chatmanager.chat_historys, room=user_uuid, namespace='/agent')