Commit 7ad337a2 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Merge pull request #26170 from wojtek-t/log_requests_to_gce

Log requests to GCE
parents 5303794e 55fdc1c0
...@@ -118,7 +118,10 @@ type rateLimitedRoundTripper struct { ...@@ -118,7 +118,10 @@ type rateLimitedRoundTripper struct {
} }
func (rl *rateLimitedRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { func (rl *rateLimitedRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
startTime := time.Now()
rl.limiter.Accept() rl.limiter.Accept()
// TODO: Reduce verbosity once #26119 is fixed.
glog.V(0).Infof("GCE api call: %s %s (throttled for %v)", req.Method, req.URL.String(), time.Now().Sub(startTime))
return rl.rt.RoundTrip(req) return rl.rt.RoundTrip(req)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment