mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 12:40:15 +00:00
Add log in quota size handler
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
b2b5d74456
commit
9601c9f206
|
@ -44,6 +44,7 @@ func New(next http.Handler, builders ...interceptor.Builder) http.Handler {
|
||||||
func (h *sizeQuotaHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
func (h *sizeQuotaHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||||
interceptor, err := h.getInterceptor(req)
|
interceptor, err := h.getInterceptor(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Warningf("Error occurred when to handle request in size quota handler: %v", err)
|
||||||
http.Error(rw, util.MarshalError("InternalError", fmt.Sprintf("Error occurred when to handle request in size quota handler: %v", err)),
|
http.Error(rw, util.MarshalError("InternalError", fmt.Sprintf("Error occurred when to handle request in size quota handler: %v", err)),
|
||||||
http.StatusInternalServerError)
|
http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user