We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2068b0f commit 8f5f869Copy full SHA for 8f5f869
1 file changed
aws/logs_monitoring_go/internal/config/apikey.go
@@ -115,7 +115,9 @@ func (c *Config) validateAPIKey() error {
115
time.Sleep(retryBackoffFactor * time.Duration(1<<attempt))
116
continue
117
}
118
- resp.Body.Close()
+ if err := resp.Body.Close(); err != nil {
119
+ slog.Debug("failed to close response body", "error", err)
120
+ }
121
122
if resp.StatusCode >= 200 && resp.StatusCode < 300 {
123
slog.Debug("API key validated successfully")
0 commit comments