add current path, when path is not absolute, fix #742

This commit is contained in:
jb-alvarado 2024-09-08 21:38:58 +02:00
parent ab66c1f80d
commit 76da2c3050

View File

@ -305,6 +305,10 @@ pub fn log_file_path() -> PathBuf {
.clone()
.unwrap_or(PathBuf::from(&config.logging_path));
if !log_path.is_absolute() {
log_path = env::current_dir().unwrap().join(log_path);
}
if !log_path.is_dir() {
log_path = env::current_dir().unwrap();
}