Skip to content

Commit

Permalink
cmd/coordinator: don't log about proxying 410 responses from proxy.go…
Browse files Browse the repository at this point in the history
…lang.org

They're common and expected.

Change-Id: Id0d684742d55e6f86373cef72e99c07a197bc4cf
Reviewed-on: https://go-review.googlesource.com/c/build/+/178718
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
bradfitz committed May 24, 2019
1 parent 8e23c8f commit 53eb64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/coordinator/modproxy.go
Expand Up @@ -23,7 +23,7 @@ func init() {
rp := httputil.NewSingleHostReverseProxy(u)
rp.ModifyResponse = func(res *http.Response) error {
r := res.Request
if res.StatusCode/100 != 2 && r != nil {
if res.StatusCode/100 != 2 && res.StatusCode != 410 && r != nil {
log.Printf("modproxy: proxying HTTP %s response from backend for %s, %s %s", res.Status, r.RemoteAddr, r.Method, r.RequestURI)
}
return nil
Expand Down

0 comments on commit 53eb64c

Please sign in to comment.