Skip to content

Commit f5d3b93

Browse files
committed
fix(context): improve logging for platform not found in session
1 parent 069a362 commit f5d3b93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/star/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ async def send_message(
457457
if platform.meta().id == session.platform_name:
458458
await platform.send_by_session(session, message_chain)
459459
return True
460-
logger.warning(f"cannot find platform for session {session.platform_name}, message not sent")
460+
logger.warning(f"cannot find platform for session {str(session)}, message not sent")
461461
return False
462462

463463
def add_llm_tools(self, *tools: FunctionTool) -> None:

0 commit comments

Comments
 (0)