diff options
Diffstat (limited to 'melib/src/logging.rs')
-rw-r--r-- | melib/src/logging.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/melib/src/logging.rs b/melib/src/logging.rs index b3657ba6..37985516 100644 --- a/melib/src/logging.rs +++ b/melib/src/logging.rs @@ -19,6 +19,7 @@ * along with meli. If not, see <http://www.gnu.org/licenses/>. */ +use crate::shellexpand::ShellExpandTrait; use chrono::offset::Local; use std::fs::OpenOptions; use std::io::{BufWriter, Write}; @@ -100,6 +101,7 @@ pub fn get_log_level() -> LoggingLevel { pub fn change_log_dest(path: PathBuf) { LOG.with(|f| { + let path = path.expand(); // expand shell stuff let mut backend = f.lock().unwrap(); backend.dest = BufWriter::new(OpenOptions::new().append(true) /* writes will append to a file instead of overwriting previous contents */ .create(true) /* a new file will be created if the file does not yet already exist.*/ |