Skip to content

Commit e4e4c29

Browse files
authored
Merge pull request #8441 from vector-im/feature/bca/more_migration_logs
Add more migration logs
2 parents 6da05a3 + 6e27ffc commit e4e4c29

File tree

1 file changed

+6
-0
lines changed
  • matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/store/db/migration/rust

1 file changed

+6
-0
lines changed

matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/store/db/migration/rust/ExtractUtils.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
7171
val userKey = metadataEntity.xSignUserPrivateKey
7272
val selfSignedKey = metadataEntity.xSignSelfSignedPrivateKey
7373

74+
Timber.i("## Migration: has private MSK ${masterKey.isNullOrBlank().not()}")
75+
Timber.i("## Migration: has private USK ${userKey.isNullOrBlank().not()}")
76+
Timber.i("## Migration: has private SSK ${selfSignedKey.isNullOrBlank().not()}")
77+
7478
val userId = metadataEntity.userId
7579
?: throw java.lang.IllegalArgumentException("Rust db migration: userId is null")
7680
val deviceId = metadataEntity.deviceId
@@ -79,6 +83,8 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
7983
val backupVersion = metadataEntity.backupVersion
8084
val backupRecoveryKey = metadataEntity.keyBackupRecoveryKey
8185

86+
Timber.i("## Migration: has private backup key ${backupRecoveryKey != null} for version $backupVersion")
87+
8288
val isOlmAccountShared = metadataEntity.deviceKeysSentToServer
8389

8490
val olmAccount = metadataEntity.getOlmAccount()

0 commit comments

Comments
 (0)