diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d9f441d..44110d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## To Be Released +* refactor: replace use of the deprecated ioutil package [#238](https://github.com/Scalingo/go-scalingo/pull/238) + ## 4.15.1 * chore: generate missing mocks from v4.15.0 diff --git a/http/api_request.go b/http/api_request.go index 1ef98368..afbc1725 100644 --- a/http/api_request.go +++ b/http/api_request.go @@ -125,7 +125,7 @@ func (c *client) Do(req *APIRequest) (*http.Response, error) { return nil, fmt.Errorf("Fail to query %s: %v", req.HTTPRequest.Host, err) } debug.Printf(pkgio.Indent("Request ID: %v", 6), res.Header.Get("X-Request-Id")) - debug.Printf(pkgio.Indent("Duration: %v", 6), time.Now().Sub(now)) + debug.Printf(pkgio.Indent("Duration: %v", 6), time.Since(now)) if req.Expected.Contains(res.StatusCode) { return res, nil