Skip to content

Commit

Permalink
Do not log error to stdout directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Feb 20, 2022
1 parent b7ce746 commit 74389a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi.go
Expand Up @@ -109,7 +109,7 @@ func (s *Session) RequestWithLockedBucket(method, urlStr, contentType string, b
defer func() {
err2 := resp.Body.Close()
if err2 != nil {
log.Println("error closing resp body")
s.log(LogError, "error closing resp body")
}
}()

Expand Down

0 comments on commit 74389a0

Please sign in to comment.