Skip to content

Commit

Permalink
tempdir: logging: emit deletion notice on debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
kartva committed Dec 20, 2023
1 parent 06f15b1 commit fbf5b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/tempdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

0 comments on commit fbf5b63

Please sign in to comment.