No need to log error

This commit is contained in:
Mike Farah 2020-01-30 15:00:27 +11:00
parent 44f36833cf
commit 4a5bd0ff5b

View File

@ -55,9 +55,8 @@ func (p *pathParser) MatchesNextPathElement(nodeContext NodeContext, nodeKey str
navigator := NewDataNavigator(navigationStrategy) navigator := NewDataNavigator(navigationStrategy)
err := navigator.Traverse(nodeContext.Node, p.ParsePath(path)) err := navigator.Traverse(nodeContext.Node, p.ParsePath(path))
if err != nil { 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())) log.Debug("done deep recursing, found %v matches", len(navigationStrategy.GetVisitedNodes()))
return len(navigationStrategy.GetVisitedNodes()) > 0 return len(navigationStrategy.GetVisitedNodes()) > 0
} }