mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
remove resource details from log for log level higher than 3
This commit is contained in:
parent
e23a25b68c
commit
df009cb2d4
1 changed files with 4 additions and 4 deletions
|
@ -350,11 +350,11 @@ func applyRule(log logr.Logger, client *dclient.Client, rule kyverno.Rule, resou
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
logger.Error(err, "failed to generate resource", "data", rdata, "mode", mode)
|
||||
logger.Error(err, "failed to generate resource", "mode", mode)
|
||||
return newGenResource, err
|
||||
}
|
||||
|
||||
logger.V(2).Info("applying generate rule", "data", rdata, "mode", mode)
|
||||
logger.V(2).Info("applying generate rule", "mode", mode)
|
||||
|
||||
if rdata == nil && mode == Update {
|
||||
logger.V(4).Info("no changes required for target resource")
|
||||
|
@ -431,9 +431,9 @@ func manageData(log logr.Logger, apiVersion, kind, namespace, name string, data
|
|||
return nil, Skip, err
|
||||
}
|
||||
|
||||
log.Info("found target resource", "resource", obj)
|
||||
log.V(3).Info("found target resource", "resource", obj)
|
||||
if data == nil {
|
||||
log.Info("data is nil - skipping update", "resource", obj)
|
||||
log.V(3).Info("data is nil - skipping update", "resource", obj)
|
||||
return nil, Skip, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue