将 session 清理错误日志改为 Debug 格式并忽略 tiptap 资源目录

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-27 13:53:17 +08:00
parent c924b1e643
commit 2b90fd05d6
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -7,4 +7,5 @@
/package-lock.json
others/
public/style.css
public/tiptap
.env

View File

@ -14,11 +14,11 @@ pub async fn run_cleanup() {
.execute("DELETE FROM sessions WHERE expires_at < NOW()", &[])
.await
{
tracing::error!("Session cleanup error: {}", e);
tracing::error!("Session cleanup error: {:?}", e);
}
}
Err(e) => {
tracing::error!("Failed to get DB connection for cleanup: {}", e);
tracing::error!("Failed to get DB connection for cleanup: {:?}", e);
}
}
}