From e8e147c42e72e654b93e79f8b6af0f092d076331 Mon Sep 17 00:00:00 2001 From: Ferran Basora Date: Fri, 15 Jan 2021 19:00:59 +0000 Subject: [PATCH] Fix issue with dbg function --- src/swapper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/swapper.rs b/src/swapper.rs index 54631ef..e6da729 100644 --- a/src/swapper.rs +++ b/src/swapper.rs @@ -46,6 +46,8 @@ const TMP_FILE: &str = "/tmp/thumbs-last"; #[allow(dead_code)] fn dbg(msg: &str) { let mut file = std::fs::OpenOptions::new() + .create(true) + .write(true) .append(true) .open("/tmp/thumbs.log") .expect("Unable to open log file");