From 9e17936196a363a7e06b72d90f87a46c5dd5d96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garc=C3=ADa=20de=20Prada?= Date: Mon, 6 Mar 2023 14:53:33 +0100 Subject: [PATCH] Show the url in the response http log too --- .../com/owncloud/android/lib/common/http/LogInterceptor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/LogInterceptor.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/LogInterceptor.kt index 0ca90a47..eea604d9 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/LogInterceptor.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/LogInterceptor.kt @@ -51,7 +51,7 @@ class LogInterceptor : Interceptor { val request = chain.request().also { val requestId = it.headers[OC_X_REQUEST_ID] - logHttp(REQUEST, INFO, requestId, "Type: ${it.method} URL: ${it.url}") + logHttp(REQUEST, INFO, requestId, "Method: ${it.method} URL: ${it.url}") logHeaders(requestId, it.headers, REQUEST) logRequestBody(requestId, it.body) } @@ -64,7 +64,7 @@ class LogInterceptor : Interceptor { RESPONSE, INFO, requestId, - "Code: ${it.code} Message: ${it.message} IsSuccessful: ${it.isSuccessful}" + "Method: ${request.method} URL: ${request.url} Code: ${it.code} Message: ${it.message}" ) logHeaders(requestId, it.headers, RESPONSE) logResponseBody(requestId, it.body)