Skip to content

Commit 488c78e

Browse files
committed
notifications: use human-friendly log format for directory deletions
1 parent 205ae41 commit 488c78e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dist/temp.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ impl Drop for Dir {
3636
match remove_dir_all::remove_dir_all(&self.path) {
3737
Ok(()) => debug!(path = %self.path.display(), "deleted temp directory"),
3838
Err(e) => {
39-
warn!(path = %self.path.display(), error = %e, "could not delete temp directory")
39+
warn!(
40+
"could not delete temp directory {} ({e})",
41+
self.path.display()
42+
)
4043
}
4144
}
4245
}

0 commit comments

Comments
 (0)