crypto: Improve the startup log line

This commit is contained in:
Damir Jelić 2021-04-20 14:33:01 +02:00
parent c5173dde71
commit ed902fc42a
1 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,9 @@ internal class DefaultCryptoService @Inject constructor(
try {
setRustLogger()
olmMachine = OlmMachine(userId, deviceId!!, dataDir, deviceObserver)
Timber.v("Successfully started up an Olm machine, identity keys: ${olmMachine?.identityKeys()}")
Timber.v(
"## CRYPTO | Successfully started up an Olm machine for " +
"${userId}, ${deviceId}, identity keys: ${olmMachine?.identityKeys()}")
} catch (throwable: Throwable) {
Timber.v("Failed create an Olm machine: $throwable")
}