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()
|
.clone()
|
||||||
.unwrap_or(PathBuf::from(&config.logging_path));
|
.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() {
|
if !log_path.is_dir() {
|
||||||
log_path = env::current_dir().unwrap();
|
log_path = env::current_dir().unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user