Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Aug 30, 2024
1 parent 1a06129 commit cd4788f
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,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 cd4788f

Please sign in to comment.