summaryrefslogtreecommitdiffstats
path: root/src/log.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2022-11-26 15:33:52 +0100
committerqkzk <qu3nt1n@gmail.com>2022-11-26 15:33:52 +0100
commit55e31d64313895dca60a2b56625ef42aa7230db7 (patch)
treea79c9de5921b310ec0190f3995b952ec8d091c53 /src/log.rs
parent23be112c4a0ca6f7e4afc08919ec722f4ff40b0e (diff)
cd on quitcd_on_quit
Diffstat (limited to 'src/log.rs')
-rw-r--r--src/log.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.rs b/src/log.rs
index 3a25fd1..7de0116 100644
--- a/src/log.rs
+++ b/src/log.rs
@@ -41,7 +41,7 @@ pub fn set_logger() -> FmResult<Handle> {
CompoundPolicy::new(Box::new(size_trigger), Box::new(fixed_window_roller));
let log_path = shellexpand::tilde(LOG_PATH).to_string();
// Don't propagate the error with ? since it crashes the application.
- create_log_folder(LOG_PATH)?;
+ create_log_folder(&log_path)?;
// Log Trace level output to file where trace is the default level
// and the programmatically specified level to stderr.
let config = Config::builder()