use logger instead of print

pull/333/head
晴猫 2025-03-13 19:47:19 +09:00 committed by GitHub
parent 50db5e2ede
commit 7e63c36aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -308,10 +308,10 @@ class ChatBot:
is_head=not mark_head, is_head=not mark_head,
is_emoji=False, is_emoji=False,
) )
print(f"bot_message: {bot_message}") logger.debug(f"bot_message: {bot_message}")
if not mark_head: if not mark_head:
mark_head = True mark_head = True
print(f"添加消息到message_set: {bot_message}") logger.debug(f"添加消息到message_set: {bot_message}")
message_set.add_message(bot_message) message_set.add_message(bot_message)
# message_set 可以直接加入 message_manager # message_set 可以直接加入 message_manager