From c7497248db47f5f7d468ff7f5c3eee2ffb56a7d3 Mon Sep 17 00:00:00 2001 From: jeremy lee Date: Fri, 23 Aug 2024 14:05:08 -0500 Subject: [PATCH] send json object --- src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt b/src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt index a54d20c75..2d2f41b9c 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/utils/Logger.kt @@ -19,14 +19,14 @@ object Logger { fun e(context: Map? = 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? = null, message: () -> String) { if (isDebugEnabled) { clientLogger?.let { - it.ddInfo(TAG, message(), context) + it.ddInfo(TAG, message(), context?.toJsonObject()) } } }