add current path, when path is not absolute, fix #742
This commit is contained in:
parent
ab66c1f80d
commit
76da2c3050
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user