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:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user