Improve logging around message sending and processing.

This commit is contained in:
Greyson Parrelli
2021-09-15 12:24:42 -04:00
committed by Alex Hart
parent cdf8e4e1ed
commit 1031a4e96c
3 changed files with 24 additions and 23 deletions

View File

@@ -23,8 +23,7 @@ import java.util.concurrent.TimeUnit
* Logs are very performance critical. Even though this database is written to on a low-priority background thread, we want to keep throughput high and ensure
* that we aren't creating excess garbage.
*
* This is it's own separate physical database, so it cannot do joins or queries with any other
* tables.
* This is it's own separate physical database, so it cannot do joins or queries with any other tables.
*/
class LogDatabase private constructor(
application: Application,
@@ -46,7 +45,7 @@ class LogDatabase private constructor(
private val MAX_FILE_SIZE = ByteUnit.MEGABYTES.toBytes(15)
private val DEFAULT_LIFESPAN = TimeUnit.DAYS.toMillis(2)
private val LONGER_LIFESPAN = TimeUnit.DAYS.toMillis(7)
private val LONGER_LIFESPAN = TimeUnit.DAYS.toMillis(14)
private const val DATABASE_VERSION = 2
private const val DATABASE_NAME = "signal-logs.db"