Skip to content

Commit

Permalink
feat: add call logging at DEBUG level (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbotsf authored Dec 9, 2021
1 parent b17d66d commit f1bfeea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ private suspend fun httpTraceMiddleware(request: SdkHttpRequest, next: Handler<S
val (resp, formattedResp) = dumpResponse(call.response, logMode.isEnabled(SdkLogMode.LogResponseWithBody))
call = call.copy(response = resp)
logger.debug { "HttpResponse:\n$formattedResp" }
} else {
logger.debug { "HttpResponse: ${call.response.status}" }
}

return call
Expand Down

0 comments on commit f1bfeea

Please sign in to comment.