1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-05 15:52:47 +02:00

Strip trailing whitespace from log lines

Log lines coming from the Rust SDK have a trailing newline, meaning that when
we emit them, we get a blank line in the logs. To prevent this, strip off
trailing whitespace.
This commit is contained in:
Richard van der Hoff
2025-08-01 11:08:26 +01:00
parent 31a32f34cc
commit 43b20b2042

View File

@@ -95,7 +95,7 @@ import org.matrix.rustcomponents.sdk.crypto.ProgressListener as RustProgressList
class CryptoLogger : Logger {
override fun log(logLine: String) {
Timber.d(logLine)
Timber.d(logLine.trimEnd())
}
}