set logging level for watchdog to WARNING

This commit is contained in:
Your Name 2025-10-07 22:27:58 +08:00
parent f355d1ca09
commit 894ed3fd0d

View File

@ -24,6 +24,7 @@ _CONVERSATION_LOGGER_NAME = "app.conversation"
_CONVERSATION_HANDLER: Optional[Handler] = None
_CONVERSATION_LOGFILE: Optional[Path] = None
logging.getLogger("watchdog").setLevel(logging.WARNING)
class DatabaseLogHandler(Handler):
"""将日志写入 SQLite `run_log` 表的自定义 Handler。"""