mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 18:27:49 +00:00
Merge pull request #98252 from lala123912/log_format_audit
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 {
|
if policyCnt == 0 {
|
||||||
return nil, fmt.Errorf("loaded illegal policy with 0 rules")
|
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
|
return policy, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user