From fbf5b63f175b3755c88363de9c817c6c19099f5a Mon Sep 17 00:00:00 2001 From: Kartavya Vashishtha Date: Wed, 20 Dec 2023 14:21:34 +0530 Subject: [PATCH] tempdir: logging: emit deletion notice on debug level --- server/src/tempdir.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/tempdir.rs b/server/src/tempdir.rs index 76d1e50..4faf959 100644 --- a/server/src/tempdir.rs +++ b/server/src/tempdir.rs @@ -59,12 +59,12 @@ impl Drop for TempDir { return; } - trace!("Deleting files."); if log_enabled!(log::Level::Trace) { - trace!("Leaving files undeleted since trace is enabled."); + trace!("Leaving tempdir files at {:?} undeleted since trace is enabled.", self.path); return; } + debug!("Deleting files."); std::fs::remove_dir_all(&self.path).expect("Error deleting tmpfile."); } }