将 session 清理错误日志改为 Debug 格式并忽略 tiptap 资源目录
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
c924b1e643
commit
2b90fd05d6
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,5 @@
|
|||||||
/package-lock.json
|
/package-lock.json
|
||||||
others/
|
others/
|
||||||
public/style.css
|
public/style.css
|
||||||
|
public/tiptap
|
||||||
.env
|
.env
|
||||||
|
|||||||
@ -14,11 +14,11 @@ pub async fn run_cleanup() {
|
|||||||
.execute("DELETE FROM sessions WHERE expires_at < NOW()", &[])
|
.execute("DELETE FROM sessions WHERE expires_at < NOW()", &[])
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
tracing::error!("Session cleanup error: {}", e);
|
tracing::error!("Session cleanup error: {:?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::error!("Failed to get DB connection for cleanup: {}", e);
|
tracing::error!("Failed to get DB connection for cleanup: {:?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user