加入debug日志

This commit is contained in:
liuwei
2025-05-07 10:11:01 +08:00
parent 5fa81e29ea
commit ee5b2274c3

View File

@@ -26,6 +26,14 @@ logger.add(
retention="7 days",
encoding="utf-8"
)
# ERROR 日志(仅 ERROR 及以上)
logger.add(
f"wx_debug.log",
level="DEBUG",
rotation="10 MB",
retention="7 days",
encoding="utf-8"
)
def main(chat_type: int):