Merge pull request #8655 from wy65701436/log-size

Add log in quota size handler
This commit is contained in:
Wang Yan 2019-08-14 16:09:45 +08:00 committed by GitHub
commit 54cb39b7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ func New(next http.Handler, builders ...interceptor.Builder) http.Handler {
func (h *sizeQuotaHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
interceptor, err := h.getInterceptor(req)
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.StatusInternalServerError)
return