mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-11 08:22:56 +00:00
Fix typo
This commit is contained in:
+3
-3
@@ -131,7 +131,7 @@ class LogInterceptor : Interceptor {
|
|||||||
|
|
||||||
logHttp(RESPONSE, BODY, requestId, "Length: ${responseBody.contentLength()} byte body")
|
logHttp(RESPONSE, BODY, requestId, "Length: ${responseBody.contentLength()} byte body")
|
||||||
logHttp(RESPONSE, BODY, requestId, "Type: ${responseBody.contentType()}")
|
logHttp(RESPONSE, BODY, requestId, "Type: ${responseBody.contentType()}")
|
||||||
logHttp(RESPONSE, BODY, requestId, "--> Body start for request")
|
logHttp(RESPONSE, BODY, requestId, "--> Body start for response")
|
||||||
|
|
||||||
val source = responseBody.source()
|
val source = responseBody.source()
|
||||||
source.request(LIMIT_BODY_LOG)
|
source.request(LIMIT_BODY_LOG)
|
||||||
@@ -142,7 +142,7 @@ class LogInterceptor : Interceptor {
|
|||||||
RESPONSE,
|
RESPONSE,
|
||||||
BODY,
|
BODY,
|
||||||
requestId,
|
requestId,
|
||||||
"<-- Body end for request -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
|
"<-- Body end for response -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ class LogInterceptor : Interceptor {
|
|||||||
RESPONSE,
|
RESPONSE,
|
||||||
BODY,
|
BODY,
|
||||||
requestId,
|
requestId,
|
||||||
"<-- Body end for request -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
|
"<-- Body end for response -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
|
||||||
)
|
)
|
||||||
} ?: logHttp(RESPONSE, BODY, requestId, "Empty body")
|
} ?: logHttp(RESPONSE, BODY, requestId, "Empty body")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user