Skip to content

Commit

Permalink
fix log-clear job (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
oppiliappan authored Aug 11, 2023
1 parent b4eeadc commit 5a4457f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bleep/src/periodic/logrotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5a4457f

Please sign in to comment.