This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

-3
View File
@@ -24,8 +24,6 @@ fn newest_log_files(
result
}
/// Rotated copies of a global log: `<file>.N`, `<file>.N.gz` (logrotate with or
/// without `delaycompress`) and other `<file>.*.gz`, newest rotation first.
fn rotated_gzip_sources(
active: &std::path::Path,
id_prefix: &str,
@@ -90,7 +88,6 @@ fn rotated_gzip_sources(
sort_by_rotation(&mut sources);
sources
}
/// Newest data first: the file being written, then `.1`, `.2`, … (ties by mtime).
fn sort_by_rotation(sources: &mut [FileLogSource]) {
sources.sort_by(|a, b| {
a.rotation