Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Jul 24, 2024
1 parent ce4dd91 commit 48551b4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ object TransactionSyncManager {
mRealm.executeTransactionAsync({ realm: Realm ->
val userModel = realm.where(RealmUserModel::class.java).equalTo("id", id).findFirst()
syncHealthData(userModel, header)
}, { listener.onSyncComplete() }) { error: Throwable ->
error.message?.let { listener.onSyncFailed(it) }
}, {
listener.onSyncComplete()
val end = System.currentTimeMillis()
logDuration(start, end, "syncKeyIv")
}) { error: Throwable ->
error.message?.let {
listener.onSyncFailed(it)
}
}
}

Expand Down

0 comments on commit 48551b4

Please sign in to comment.