Skip to content

Commit

Permalink
send json object
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Sep 10, 2024
1 parent c1111d4 commit c749724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ object Logger {

fun e(context: Map<String, Any>? = null, error: Error? = null, message: () -> String) {
clientLogger?.let {
it.e(TAG, message(), context, error)
it.e(TAG, message(), context?.toJsonObject(), error)
} ?: platformErrorLog(message())
}

fun ddInfo(context: Map<String, Any>? = null, message: () -> String) {
if (isDebugEnabled) {
clientLogger?.let {
it.ddInfo(TAG, message(), context)
it.ddInfo(TAG, message(), context?.toJsonObject())
}
}
}
Expand Down

0 comments on commit c749724

Please sign in to comment.