|
|
@ -49,7 +49,7 @@ public class EntityLog {
|
|
|
|
private static Long last_cleanup = null;
|
|
|
|
private static Long last_cleanup = null;
|
|
|
|
|
|
|
|
|
|
|
|
private static final long LOG_CLEANUP_INTERVAL = 3600 * 1000L; // milliseconds
|
|
|
|
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;
|
|
|
|
private static final int LOG_DELETE_BATCH_SIZE = 50;
|
|
|
|
|
|
|
|
|
|
|
|
@PrimaryKey(autoGenerate = true)
|
|
|
|
@PrimaryKey(autoGenerate = true)
|
|
|
|