mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 15:36:44 +00:00
🐛 Fix Too Many Arguments for Logging Format String
This commit is contained in:
parent
50cc134452
commit
ae7e47ec5d
@ -40,7 +40,7 @@ async def send_user_notification(update: Update, context: CallbackContext, text:
|
|||||||
logger.warning("错误的消息类型\n %s", json.dumps(update_str, indent=2, ensure_ascii=False))
|
logger.warning("错误的消息类型\n %s", json.dumps(update_str, indent=2, ensure_ascii=False))
|
||||||
return None
|
return None
|
||||||
if chat.id == user.id:
|
if chat.id == user.id:
|
||||||
logger.info("尝试通知用户 %s[%s] 错误信息[%s]", user.full_name, user.id, chat.title, chat.id, text)
|
logger.info("尝试通知用户 %s[%s] 错误信息[%s]", user.full_name, user.id, text)
|
||||||
else:
|
else:
|
||||||
logger.info("尝试通知用户 %s[%s] 在 %s[%s] 的错误信息[%s]", user.full_name, user.id, chat.title, chat.id, text)
|
logger.info("尝试通知用户 %s[%s] 在 %s[%s] 的错误信息[%s]", user.full_name, user.id, chat.title, chat.id, text)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user