mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
staging/src/k8s.io/apiserver/pkg/audit/policy/reader.go migrate logs to structured logging
This commit is contained in:
@@ -85,6 +85,7 @@ func LoadPolicyFromBytes(policyDef []byte) (*auditinternal.Policy, error) {
|
||||
if policyCnt == 0 {
|
||||
return nil, fmt.Errorf("loaded illegal policy with 0 rules")
|
||||
}
|
||||
klog.V(4).Infof("Loaded %d audit policy rules", policyCnt)
|
||||
|
||||
klog.V(4).InfoS("Load audit policy rules success", "policyCnt", policyCnt)
|
||||
return policy, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user