fix logging to file
This commit is contained in:
parent
0c51f8303c
commit
b6ffcd9d45
@ -199,7 +199,7 @@ pub fn init_logging(
|
||||
};
|
||||
};
|
||||
|
||||
if app_config.log_to_file && !app_config.path.exists() {
|
||||
if app_config.log_to_file && app_config.path.exists() {
|
||||
let file_config = log_config
|
||||
.clone()
|
||||
.set_time_format_custom(format_description!(
|
||||
|
@ -328,7 +328,7 @@ pub fn get_date(seek: bool, start: f64, get_next: bool) -> String {
|
||||
return (local - Duration::days(1)).format("%Y-%m-%d").to_string();
|
||||
}
|
||||
|
||||
if start == 0.0 && get_next && get_sec() > 86398.0 {
|
||||
if start == 0.0 && get_next && get_sec() > 86397.9 {
|
||||
return (local + Duration::days(1)).format("%Y-%m-%d").to_string();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user