Add some missing log spaces

Change-Id: I36cfbaa49f1e7703d23eacefeeafda380eb99e65
This commit is contained in:
SpiritCroc 2022-05-24 11:53:38 +02:00
parent a95e41056d
commit d3addc24f1

View File

@ -217,12 +217,12 @@ internal class TokenChunkEventPersistor @Inject constructor(
if (existingChunk != null) { if (existingChunk != null) {
if (existingChunk == currentChunk) { if (existingChunk == currentChunk) {
Timber.w("Avoid double insertion of event $eventId, shouldn't happen in an ideal world | " + Timber.w("Avoid double insertion of event $eventId, shouldn't happen in an ideal world | " +
"direction: $direction.value" + "direction: $direction.value " +
"room: $roomId" + "room: $roomId " +
"chunk: ${existingChunk.identifier()}" + "chunk: ${existingChunk.identifier()} " +
"eventId: $eventId" + "eventId: $eventId " +
"caughtByOldCheck ${((if (direction == PaginationDirection.BACKWARDS) currentChunk.nextChunk else currentChunk.prevChunk) == existingChunk)}" + "caughtByOldCheck ${((if (direction == PaginationDirection.BACKWARDS) currentChunk.nextChunk else currentChunk.prevChunk) == existingChunk)} " +
"caughtByOldBackwardCheck ${(currentChunk.nextChunk == existingChunk)}" + "caughtByOldBackwardCheck ${(currentChunk.nextChunk == existingChunk)} " +
"caughtByOldForwardCheck ${(currentChunk.prevChunk == existingChunk)}" "caughtByOldForwardCheck ${(currentChunk.prevChunk == existingChunk)}"
) )
// No idea why this happens, but if it does, we don't want to throw away all the other events // No idea why this happens, but if it does, we don't want to throw away all the other events
@ -234,7 +234,7 @@ internal class TokenChunkEventPersistor @Inject constructor(
if (alreadyLinkedNext || alreadyLinkedPrev) { if (alreadyLinkedNext || alreadyLinkedPrev) {
Timber.w("Avoid double link, shouldn't happen in an ideal world | " + Timber.w("Avoid double link, shouldn't happen in an ideal world | " +
"direction: $direction " + "direction: $direction " +
"room: $roomId event: $eventId" + "room: $roomId event: $eventId " +
"linkedPrev: $alreadyLinkedPrev linkedNext: $alreadyLinkedNext " + "linkedPrev: $alreadyLinkedPrev linkedNext: $alreadyLinkedNext " +
"oldChunk: ${existingChunk.identifier()} newChunk: ${existingChunk.identifier()} " + "oldChunk: ${existingChunk.identifier()} newChunk: ${existingChunk.identifier()} " +
"oldBackwardCheck: ${currentChunk.nextChunk == existingChunk} " + "oldBackwardCheck: ${currentChunk.nextChunk == existingChunk} " +