Merge pull request #8441 from vector-im/feature/bca/more_migration_logs
Add more migration logs
This commit is contained in:
commit
e4e4c2940b
|
@ -71,6 +71,10 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
|
||||||
val userKey = metadataEntity.xSignUserPrivateKey
|
val userKey = metadataEntity.xSignUserPrivateKey
|
||||||
val selfSignedKey = metadataEntity.xSignSelfSignedPrivateKey
|
val selfSignedKey = metadataEntity.xSignSelfSignedPrivateKey
|
||||||
|
|
||||||
|
Timber.i("## Migration: has private MSK ${masterKey.isNullOrBlank().not()}")
|
||||||
|
Timber.i("## Migration: has private USK ${userKey.isNullOrBlank().not()}")
|
||||||
|
Timber.i("## Migration: has private SSK ${selfSignedKey.isNullOrBlank().not()}")
|
||||||
|
|
||||||
val userId = metadataEntity.userId
|
val userId = metadataEntity.userId
|
||||||
?: throw java.lang.IllegalArgumentException("Rust db migration: userId is null")
|
?: throw java.lang.IllegalArgumentException("Rust db migration: userId is null")
|
||||||
val deviceId = metadataEntity.deviceId
|
val deviceId = metadataEntity.deviceId
|
||||||
|
@ -79,6 +83,8 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
|
||||||
val backupVersion = metadataEntity.backupVersion
|
val backupVersion = metadataEntity.backupVersion
|
||||||
val backupRecoveryKey = metadataEntity.keyBackupRecoveryKey
|
val backupRecoveryKey = metadataEntity.keyBackupRecoveryKey
|
||||||
|
|
||||||
|
Timber.i("## Migration: has private backup key ${backupRecoveryKey != null} for version $backupVersion")
|
||||||
|
|
||||||
val isOlmAccountShared = metadataEntity.deviceKeysSentToServer
|
val isOlmAccountShared = metadataEntity.deviceKeysSentToServer
|
||||||
|
|
||||||
val olmAccount = metadataEntity.getOlmAccount()
|
val olmAccount = metadataEntity.getOlmAccount()
|
||||||
|
|
Loading…
Reference in New Issue