Anders Oedlund
07/29/2021, 10:55 PMlog("BODY START")
in the below function.
private suspend fun logResponseBody(contentType: ContentType?, content: ByteReadChannel): Unit = with(logger) {
log("BODY Content-Type: $contentType")
log("BODY START")
val message = content.tryReadText(contentType?.charset() ?: Charsets.UTF_8) ?: "[response body omitted]"
log(message)
log("BODY END")
}
Does anyone else have a similar experience, or any pointer how to avoid this (other than not installing the Logging plugin)?Aleksei Tirman [JB]
07/30/2021, 11:00 AMAnders Oedlund
07/30/2021, 6:28 PM