smithy-go icon indicating copy to clipboard operation
smithy-go copied to clipboard

Close response body middleware log is not clear

Open Insomnia0207 opened this issue 1 year ago • 2 comments

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

Insomnia0207 avatar May 10 '23 11:05 Insomnia0207

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

Insomnia0207 avatar May 12 '23 03:05 Insomnia0207

I have the same. Any ideas?

Rjerk avatar Jun 13 '24 08:06 Rjerk