smithy-go
smithy-go copied to clipboard
Close response body middleware log is not clear
In middleware_close_response_body.go
, if we fail to copy the response body or close the response body, we couldn't see the error from the log.
Code url: https://github.com/aws/smithy-go/blob/main/transport/http/middleware_close_response_body.go#L65-L76
Some background is our log is flooded with
SDK 2023/05/12 03:04:40 WARN failed to close HTTP response body, this may affect connection reuse
But we couldn't know the cause
I have the same. Any ideas?