From 4a5bd0ff5b308b3dae40f5caa66e30c5b7cae2de Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Thu, 30 Jan 2020 15:00:27 +1100 Subject: [PATCH] No need to log error --- pkg/yqlib/path_parser.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/yqlib/path_parser.go b/pkg/yqlib/path_parser.go index a06ff048..6a96d69f 100644 --- a/pkg/yqlib/path_parser.go +++ b/pkg/yqlib/path_parser.go @@ -55,9 +55,8 @@ func (p *pathParser) MatchesNextPathElement(nodeContext NodeContext, nodeKey str navigator := NewDataNavigator(navigationStrategy) err := navigator.Traverse(nodeContext.Node, p.ParsePath(path)) if err != nil { - log.Error(err.Error()) + log.Info(err.Error()) } - //crap handle error log.Debug("done deep recursing, found %v matches", len(navigationStrategy.GetVisitedNodes())) return len(navigationStrategy.GetVisitedNodes()) > 0 }