From 71662c005ab495c84ce00a04e70309cc5d1625a9 Mon Sep 17 00:00:00 2001 From: mdwairi Date: Mon, 2 Dec 2024 01:10:06 +0300 Subject: [PATCH] fix: add logback for examples module --- .../com/expediagroup/sdk/core/logging/common/RequestLogger.kt | 1 - .../com/expediagroup/sdk/core/logging/common/ResponseLogger.kt | 1 - examples/build.gradle | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/RequestLogger.kt b/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/RequestLogger.kt index 6f74c7a8..298aa848 100644 --- a/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/RequestLogger.kt +++ b/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/RequestLogger.kt @@ -14,7 +14,6 @@ object RequestLogger { val requestBodyString = request.body?.let { it.peekContent(maxBodyLogSize, it.mediaType()?.charset) } buildString { - append("[timestamp=${System.currentTimeMillis()}] - ") append("[Outgoing] - ") append("[Method=${request.method}, URL=${request.url}, Headers=[${request.headers}], Body=[${requestBodyString}]") }.also { diff --git a/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/ResponseLogger.kt b/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/ResponseLogger.kt index 10140462..e1a79e1f 100644 --- a/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/ResponseLogger.kt +++ b/code/src/main/kotlin/com/expediagroup/sdk/core/logging/common/ResponseLogger.kt @@ -13,7 +13,6 @@ object ResponseLogger { val responseBodyString = response.body?.let { it.peekContent(maxBodyLogSize, it.mediaType()?.charset) } buildString { - append("[timestamp=${System.currentTimeMillis()}] - ") append("[Incoming] - ") append("[Code=${response.code}, URL=${response.request.url}, Headers=[${response.headers}], Body=[${responseBodyString}]") }.also { diff --git a/examples/build.gradle b/examples/build.gradle index 6f5f3508..3f5cb978 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,5 +1,5 @@ dependencies { - implementation 'org.slf4j:slf4j-simple:2.0.16' + runtimeOnly 'ch.qos.logback:logback-classic:1.5.12' implementation(project(":code")) }