Skip to content

Commit 2c36be8

Browse files
committed
fix: Actually keep 5 log files
1 parent 5396b04 commit 2c36be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/yokai/core/RollingUniFileLogWriter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class RollingUniFileLogWriter(
146146
}
147147
.orEmpty()
148148
.sortedByDescending { it.name }
149-
.drop(maxLogFiles - 1)
149+
.drop(maxLogFiles)
150150
.forEach {
151151
it.delete()
152152
dupes[it.name]?.forEach { f -> f.delete() }

0 commit comments

Comments
 (0)