Bump -> 3.4.19

This commit is contained in:
Alexey
2026-06-24 00:53:01 +03:00
parent 87c82c2a63
commit f56895feac
8 changed files with 169 additions and 359 deletions
+7 -8
View File
@@ -240,7 +240,10 @@ fn open_append_file(path: &Path) -> io::Result<(File, u64)> {
let file = match options.open(path) {
Ok(file) => file,
Err(error) => {
let Some(parent) = path.parent().filter(|parent| !parent.as_os_str().is_empty()) else {
let Some(parent) = path
.parent()
.filter(|parent| !parent.as_os_str().is_empty())
else {
return Err(error);
};
fs::create_dir_all(parent)?;
@@ -259,13 +262,9 @@ fn active_path_for(
) -> PathBuf {
match rotation {
LogRotation::Never => dir.join(base_name),
LogRotation::Minutely
| LogRotation::Hourly
| LogRotation::Daily
| LogRotation::Weekly => dir.join(format!(
"{base_name}.{}",
period_suffix_for(rotation, now)
)),
LogRotation::Minutely | LogRotation::Hourly | LogRotation::Daily | LogRotation::Weekly => {
dir.join(format!("{base_name}.{}", period_suffix_for(rotation, now)))
}
}
}