diff --git a/server/bleep/src/periodic/logrotate.rs b/server/bleep/src/periodic/logrotate.rs index 60568b1a3b..a5d2382a0f 100644 --- a/server/bleep/src/periodic/logrotate.rs +++ b/server/bleep/src/periodic/logrotate.rs @@ -52,7 +52,7 @@ pub(crate) async fn clear_disk_logs(app: crate::Application) { if let Ok(mut r) = tokio::fs::read_dir(&log_dir).await { while let Ok(Some(entry)) = r.next_entry().await { - if entry + if !entry .file_name() .to_str() .map(|f| allowed_files.contains(f))