Skip to content

Commit

Permalink
Add debug info for redirect blob
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Jul 9, 2024
1 parent 31e111b commit b2608bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crproxy_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ func (c *CRProxy) redirectBlobResponse(rw http.ResponseWriter, r *http.Request,
errcode.ServeJSON(rw, errcode.ErrorCodeDenied)
return
default:
if c.logger != nil {
c.logger.Println("failed to redirect blob", info.Host, info.Image, resp.StatusCode)
}
errcode.ServeJSON(rw, errcode.ErrorCodeUnavailable)
return
case http.StatusOK:
Expand Down

0 comments on commit b2608bb

Please sign in to comment.