mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Improve logging around message sending and processing.
This commit is contained in:
committed by
Alex Hart
parent
cdf8e4e1ed
commit
1031a4e96c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user