From 356be80f56a726345bb71315bb124bbd9d2f9b1f Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Mon, 24 Aug 2020 07:55:36 +0000 Subject: [PATCH] fix(quota): change log to debug level when warning not found Closes #12861 Signed-off-by: He Weiwei --- src/server/middleware/quota/quota.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/middleware/quota/quota.go b/src/server/middleware/quota/quota.go index 85f3d2ae2..998f6ea09 100644 --- a/src/server/middleware/quota/quota.go +++ b/src/server/middleware/quota/quota.go @@ -16,13 +16,13 @@ package quota import ( "fmt" - lib_http "github.com/goharbor/harbor/src/lib/http" "net/http" "strings" cq "github.com/goharbor/harbor/src/controller/quota" "github.com/goharbor/harbor/src/lib" "github.com/goharbor/harbor/src/lib/errors" + lib_http "github.com/goharbor/harbor/src/lib/http" "github.com/goharbor/harbor/src/lib/log" "github.com/goharbor/harbor/src/pkg/notification" "github.com/goharbor/harbor/src/pkg/notifier/event" @@ -134,7 +134,7 @@ func RequestMiddleware(config RequestConfig, skippers ...middleware.Skipper) fun } if len(resources) == 0 { - logger.Warningf("not warning resources found") + logger.Debug("not warning resources found") return }