Use kotlin string builder

This commit is contained in:
Benoit Marty 2022-02-02 10:46:31 +01:00
parent cd16d3f19b
commit 2bf36c74e3
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ internal class MXOutboundSessionInfo(
val sessionLifetime = System.currentTimeMillis() - creationTime val sessionLifetime = System.currentTimeMillis() - creationTime
if (useCount >= rotationPeriodMsgs || sessionLifetime >= rotationPeriodMs) { if (useCount >= rotationPeriodMsgs || sessionLifetime >= rotationPeriodMs) {
Timber.v("## needsRotation() : Rotating megolm session after " + useCount + ", " + sessionLifetime + "ms") Timber.v("## needsRotation() : Rotating megolm session after $useCount, ${sessionLifetime}ms")
needsRotation = true needsRotation = true
} }

View file

@ -66,7 +66,7 @@ internal class ThumbnailExtractor @Inject constructor(
thumbnail.recycle() thumbnail.recycle()
outputStream.reset() outputStream.reset()
} ?: run { } ?: run {
Timber.e("Cannot extract video thumbnail at %s", attachment.queryUri.toString()) Timber.e("Cannot extract video thumbnail at ${attachment.queryUri}")
} }
} catch (e: Exception) { } catch (e: Exception) {
Timber.e(e, "Cannot extract video thumbnail") Timber.e(e, "Cannot extract video thumbnail")