We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb196a commit 5e7f156Copy full SHA for 5e7f156
apps/framework-cli/src/cli/logger.rs
@@ -131,7 +131,8 @@ fn clean_old_logs() {
131
for entry in dir.flatten() {
132
if entry.path().extension().is_some_and(|ext| ext == "log") {
133
match entry.metadata().and_then(|md| md.modified()) {
134
- Ok(t) if t > cut_off => {
+ // Smaller time means older than the cut_off
135
+ Ok(t) if t < cut_off => {
136
let _ = std::fs::remove_file(entry.path());
137
}
138
Ok(_) => {}
0 commit comments