Skip to content

Commit

Permalink
Added log for updated generated resource
Browse files Browse the repository at this point in the history
  • Loading branch information
evalsocket committed Nov 29, 2020
1 parent ec95724 commit ecc77da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func applyRule(log logr.Logger, client *dclient.Client, rule kyverno.Rule, resou
logger.Error(err, "updating existing resource")
return noGenResource, err
}
logger.V(4).Info("updated generated resource")
logger.V(2).Info("updated generated resource")
} else {
resource := &unstructured.Unstructured{}
resource.SetUnstructuredContent(rdata)
Expand All @@ -392,10 +392,10 @@ func applyRule(log logr.Logger, client *dclient.Client, rule kyverno.Rule, resou
logger.Error(err, "updating existing resource")
return noGenResource, err
}
logger.V(4).Info("updated geneated resource")
logger.V(2).Info("updated generated resource")
}

logger.V(4).Info("Synchronize resource is disabled")
logger.V(2).Info("Synchronize resource is disabled")
}
return newGenResource, nil
}
Expand Down

0 comments on commit ecc77da

Please sign in to comment.