diff --git a/restapi.go b/restapi.go index 7aa9718f5..9e0ba1d4c 100644 --- a/restapi.go +++ b/restapi.go @@ -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(LogDebug, "error closing resp body") } }()