Browse Source

Merge branch '_log_leftover_url' into _product

pull/5936/head
changlin.shi 2 years ago
parent
commit
84ae59204a
  1. 2
      weed/util/http_util.go

2
weed/util/http_util.go

@ -416,7 +416,7 @@ func CloseResponse(resp *http.Response) {
resp.Body.Close()
if reader.BytesRead > 0 {
if resp.Request != nil && resp.Request.URL != nil {
glog.V(1).Infof("response leftover %d bytes, url: %s", resp.Request.URL.RequestURI())
glog.V(1).Infof("response leftover %d bytes, url: %s", reader.BytesRead, resp.Request.URL.RequestURI())
} else {
glog.V(1).Infof("response leftover %d bytes", reader.BytesRead)
}

Loading…
Cancel
Save