TokenChunkEventPersistor: log sync tokens

Change-Id: I916808b1839171b8bd96dc5560d97c43c801165b
This commit is contained in:
SpiritCroc 2022-04-11 16:17:37 +02:00
parent 68c9c5459d
commit 1e62bbfdb3

View file

@ -67,7 +67,9 @@ internal class TokenChunkEventPersistor @Inject constructor(
direction: PaginationDirection): Result {
monarchy
.awaitTransaction { realm ->
Timber.i("Start persisting ${receivedChunk.events.size} events in $roomId towards $direction | first ${receivedChunk.events.firstOrNull()?.eventId} last ${receivedChunk.events.lastOrNull()?.eventId}")
Timber.i("Start persisting ${receivedChunk.events.size} events in $roomId towards $direction | " +
"start ${receivedChunk.start}, end ${receivedChunk.end} | " +
"first ${receivedChunk.events.firstOrNull()?.eventId} last ${receivedChunk.events.lastOrNull()?.eventId}")
val nextToken: String?
val prevToken: String?