Skip to content

Commit

Permalink
fix: change failed conversion log level to debug (argoproj#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Matyushentsev authored Jul 2, 2020
1 parent c23d4d7 commit 56e31f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ func (c *clusterCache) GetManagedLiveObjs(targetObjs []*unstructured.Unstructure
converted, err := c.kubectl.ConvertToVersion(managedObj, targetObj.GroupVersionKind().Group, targetObj.GroupVersionKind().Version)
if err != nil {
// fallback to loading resource from kubernetes if conversion fails
log.Warnf("Failed to convert resource: %v", err)
log.Debugf("Failed to convert resource: %v", err)
managedObj, err = c.kubectl.GetResource(c.config, targetObj.GroupVersionKind(), managedObj.GetName(), managedObj.GetNamespace())
if err != nil {
if errors.IsNotFound(err) {
Expand Down

0 comments on commit 56e31f3

Please sign in to comment.