Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Oct 28, 2024
1 parent e65df1f commit e4ed914
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 e4ed914

Please sign in to comment.