This commit is contained in:
Jonas Kruckenberg
2022-12-14 20:46:23 +01:00
parent 36698d1436
commit 64aed34eff
5 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -252,7 +252,7 @@ impl LoggerBuilder {
LogTarget::Stderr => fern::Output::from(std::io::stderr()),
LogTarget::Folder(path) => {
if !path.exists() {
fs::create_dir_all(&path).unwrap();
fs::create_dir_all(path).unwrap();
}
fern::log_file(get_log_file_path(
@@ -264,7 +264,7 @@ impl LoggerBuilder {
.into()
}
LogTarget::LogDir => {
let path = app_handle.path_resolver().log_dir().unwrap();
let path = app_handle.path_resolver().app_log_dir().unwrap();
if !path.exists() {
fs::create_dir_all(&path).unwrap();
}