Change namespace error log level
This commit is contained in:
parent
7f8b35e295
commit
600b20fb81
@ -188,9 +188,9 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
|
||||
// Check the accounts namespace matches the namespace we're operating
|
||||
// within. If not forbid the request and log the occurance.
|
||||
if account.Namespace != namespace {
|
||||
logger.Warnf("Cross namespace request forbidden: account %v (%v) requested access to %v %v in the %v namespace",
|
||||
logger.Debugf("Cross namespace request forbidden: account %v (%v) requested access to %v %v in the %v namespace",
|
||||
account.ID, account.Namespace, req.Service(), req.Endpoint(), namespace)
|
||||
return errors.Forbidden(req.Service(), "cross namespace request")
|
||||
// return errors.Forbidden(req.Service(), "cross namespace request")
|
||||
}
|
||||
|
||||
// construct the resource
|
||||
|
Loading…
Reference in New Issue
Block a user