diff --git a/utils/cache/cached_http_client.go b/utils/cache/cached_http_client.go index d570cb062..94d33100b 100644 --- a/utils/cache/cached_http_client.go +++ b/utils/cache/cached_http_client.go @@ -49,16 +49,18 @@ func (c *HTTPClient) Do(req *http.Request) (*http.Response, error) { cached = false req, err := c.deserializeReq(key) if err != nil { + log.Trace(req.Context(), "CachedHTTPClient.Do", "key", key, err) return "", 0, err } resp, err := c.hc.Do(req) if err != nil { + log.Trace(req.Context(), "CachedHTTPClient.Do", "req", req, err) return "", 0, err } defer resp.Body.Close() return c.serializeResponse(resp), c.ttl, nil }) - log.Trace(req.Context(), "CachedHTTPClient.Do", "key", key, "cached", cached, "elapsed", time.Since(start)) + log.Trace(req.Context(), "CachedHTTPClient.Do", "key", key, "cached", cached, "elapsed", time.Since(start), err) if err != nil { return nil, err }