fix(context): log warning when platform not found for session
This commit is contained in:
@@ -457,6 +457,7 @@ class Context:
|
||||
if platform.meta().id == session.platform_name:
|
||||
await platform.send_by_session(session, message_chain)
|
||||
return True
|
||||
logger.warning(f"cannot find platform for session {session.platform_name}, message not sent")
|
||||
return False
|
||||
|
||||
def add_llm_tools(self, *tools: FunctionTool) -> None:
|
||||
|
||||
Reference in New Issue
Block a user