fix: add error logging for send_thinking failures in email poller

This commit is contained in:
2026-07-15 19:02:59 +08:00
parent da1b266350
commit 687e60ede4
2 changed files with 4 additions and 2 deletions

View File

@@ -58,7 +58,9 @@ def _email_poller(cfg):
try:
tg_msg_id = send_thinking(cfg.telegram, cfg.telegram.chat_id,
f"📥 *获取邮件中…*\n{_mail_label(mail)}")
except Exception:
logger.info(" 获取邮件中消息已发送: msg_id=%d", tg_msg_id)
except Exception as e:
logger.error(" 获取邮件中消息发送失败: %s", e)
tg_msg_id = 0
_email_queue.put((acct_idx, mail, tg_msg_id))
except Exception as e: