Raise RBAC DENY log level

This commit is contained in:
Jordan Liggitt
2017-12-14 00:06:23 -05:00
parent bba84d785e
commit 13854c46a7

View File

@@ -79,7 +79,7 @@ func (r *RBACAuthorizer) Authorize(requestAttributes authorizer.Attributes) (aut
// Build a detailed log of the denial. // Build a detailed log of the denial.
// Make the whole block conditional so we don't do a lot of string-building we won't use. // Make the whole block conditional so we don't do a lot of string-building we won't use.
if glog.V(2) { if glog.V(5) {
var operation string var operation string
if requestAttributes.IsResourceRequest() { if requestAttributes.IsResourceRequest() {
b := &bytes.Buffer{} b := &bytes.Buffer{}