From 2b90fd05d61af85f67c82623b8cdc631c843575f Mon Sep 17 00:00:00 2001 From: xfy Date: Wed, 27 May 2026 13:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20session=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97=E6=94=B9=E4=B8=BA=20Debug?= =?UTF-8?q?=20=E6=A0=BC=E5=BC=8F=E5=B9=B6=E5=BF=BD=E7=95=A5=20tiptap=20?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .gitignore | 1 + src/tasks/session_cleanup.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 98a0031..60b5d1b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ /package-lock.json others/ public/style.css +public/tiptap .env diff --git a/src/tasks/session_cleanup.rs b/src/tasks/session_cleanup.rs index 1969fbe..b5df719 100644 --- a/src/tasks/session_cleanup.rs +++ b/src/tasks/session_cleanup.rs @@ -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); } } }