fix(quota): change log to debug level when warning not found

Closes 

Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
He Weiwei 2020-08-24 07:55:36 +00:00
parent c0602b5fb3
commit 356be80f56

View File

@ -16,13 +16,13 @@ package quota
import ( import (
"fmt" "fmt"
lib_http "github.com/goharbor/harbor/src/lib/http"
"net/http" "net/http"
"strings" "strings"
cq "github.com/goharbor/harbor/src/controller/quota" cq "github.com/goharbor/harbor/src/controller/quota"
"github.com/goharbor/harbor/src/lib" "github.com/goharbor/harbor/src/lib"
"github.com/goharbor/harbor/src/lib/errors" "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/lib/log"
"github.com/goharbor/harbor/src/pkg/notification" "github.com/goharbor/harbor/src/pkg/notification"
"github.com/goharbor/harbor/src/pkg/notifier/event" "github.com/goharbor/harbor/src/pkg/notifier/event"
@ -134,7 +134,7 @@ func RequestMiddleware(config RequestConfig, skippers ...middleware.Skipper) fun
} }
if len(resources) == 0 { if len(resources) == 0 {
logger.Warningf("not warning resources found") logger.Debug("not warning resources found")
return return
} }