Skip to content

Commit 43b20b2

Browse files
committed
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.
1 parent 31a32f3 commit 43b20b2

File tree

1 file changed

+1
-1
lines changed
  • matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto

1 file changed

+1
-1
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ import org.matrix.rustcomponents.sdk.crypto.ProgressListener as RustProgressList
9595

9696
class CryptoLogger : Logger {
9797
override fun log(logLine: String) {
98-
Timber.d(logLine)
98+
Timber.d(logLine.trimEnd())
9999
}
100100
}
101101

0 commit comments

Comments
 (0)