Skip to content

Commit f1bfeea

Browse files
authored
feat: add call logging at DEBUG level (#547)
1 parent b17d66d commit f1bfeea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/protocol/http/common/src/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecution.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ private suspend fun httpTraceMiddleware(request: SdkHttpRequest, next: Handler<S
195195
val (resp, formattedResp) = dumpResponse(call.response, logMode.isEnabled(SdkLogMode.LogResponseWithBody))
196196
call = call.copy(response = resp)
197197
logger.debug { "HttpResponse:\n$formattedResp" }
198+
} else {
199+
logger.debug { "HttpResponse: ${call.response.status}" }
198200
}
199201

200202
return call

0 commit comments

Comments
 (0)