Skip to content

Commit 5e7f156

Browse files
Fix log cleanup (#1677)
1 parent ebb196a commit 5e7f156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/framework-cli/src/cli/logger.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ fn clean_old_logs() {
131131
for entry in dir.flatten() {
132132
if entry.path().extension().is_some_and(|ext| ext == "log") {
133133
match entry.metadata().and_then(|md| md.modified()) {
134-
Ok(t) if t > cut_off => {
134+
// Smaller time means older than the cut_off
135+
Ok(t) if t < cut_off => {
135136
let _ = std::fs::remove_file(entry.path());
136137
}
137138
Ok(_) => {}

0 commit comments

Comments
 (0)