Skip to content

Commit

Permalink
optimal
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanganhtuan95ptit committed Jan 25, 2023
1 parent 0ba1269 commit 49d521b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ fun log(name: String, data: String = "") = GlobalScope.launch(handler + Dispatch

val eventName = name.normalize().replace(".", "").replace("-", "_")

App.shared.logAnalytics.executeByFast(Analytics.Param(eventName, data))
App.shared.logAnalytics.map { it.execute(Analytics.Param(eventName, data)) }
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ private val handler = CoroutineExceptionHandler { _: CoroutineContext, throwable

fun logException(throwable: Throwable) = GlobalScope.launch(handler + Dispatchers.IO) {

App.shared.logCrashlytics.executeByFast(Crashlytics.Param(throwable))
App.shared.logCrashlytics.map { it.execute(Crashlytics.Param(throwable)) }
}

0 comments on commit 49d521b

Please sign in to comment.