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:
parent
31a32f34cc
commit
43b20b2042
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user