Log more details for memcache errors.

This commit is contained in:
Mihai Parparita 2014-12-07 15:13:49 -08:00
parent f462e1917a
commit 4a45ada620

View file

@ -70,7 +70,8 @@ func (t *CachingTransport) RoundTrip(req *http.Request) (resp *http.Response, er
Expiration: expiration,
})
if err != nil {
t.Context.Errorf("Error setting cached response: %v", err)
t.Context.Errorf("Error setting cached response for %s (cache key %s, %d bytes to cache): %v",
req.URL, cacheKey, len(respBytes), err)
}
return resp, nil
}