1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-28 16:55:56 +00:00

Debug: keep logs for 24h

This commit is contained in:
M66B 2024-05-15 22:06:03 +02:00
parent b1d0aa4ec6
commit a06e4aa0a3

View file

@ -49,7 +49,7 @@ public class EntityLog {
private static Long last_cleanup = null;
private static final long LOG_CLEANUP_INTERVAL = 3600 * 1000L; // milliseconds
private static final long LOG_KEEP_DURATION = 12 * 3600 * 1000L; // milliseconds
private static final long LOG_KEEP_DURATION = (BuildConfig.DEBUG ? 24 : 12) * 3600 * 1000L; // milliseconds
private static final int LOG_DELETE_BATCH_SIZE = 50;
@PrimaryKey(autoGenerate = true)