mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 08:35:42 +00:00
remove logs
This commit is contained in:
parent
98c45ed622
commit
65f4b1590b
@ -5,12 +5,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func filterOperator(d *dataTreeNavigator, context Context, expressionNode *ExpressionNode) (Context, error) {
|
func filterOperator(d *dataTreeNavigator, context Context, expressionNode *ExpressionNode) (Context, error) {
|
||||||
log.Warningf("-- filterOperation")
|
log.Debugf("-- filterOperation")
|
||||||
var results = list.New()
|
var results = list.New()
|
||||||
|
|
||||||
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
|
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
|
||||||
candidate := el.Value.(*CandidateNode)
|
candidate := el.Value.(*CandidateNode)
|
||||||
log.Warningf("candidate %#v", candidate)
|
|
||||||
children := context.SingleChildContext(candidate)
|
children := context.SingleChildContext(candidate)
|
||||||
splatted, err := splat(children, traversePreferences{})
|
splatted, err := splat(children, traversePreferences{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -20,10 +19,6 @@ func filterOperator(d *dataTreeNavigator, context Context, expressionNode *Expre
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return Context{}, err
|
return Context{}, err
|
||||||
}
|
}
|
||||||
for resultEl := filtered.MatchingNodes.Front(); resultEl != nil; resultEl = resultEl.Next() {
|
|
||||||
result := resultEl.Value.(*CandidateNode)
|
|
||||||
log.Warningf("filtered %#v", result)
|
|
||||||
}
|
|
||||||
|
|
||||||
selfExpression := &ExpressionNode{Operation: &Operation{OperationType: selfReferenceOpType}}
|
selfExpression := &ExpressionNode{Operation: &Operation{OperationType: selfReferenceOpType}}
|
||||||
collected, err := collectTogether(d, filtered, selfExpression)
|
collected, err := collectTogether(d, filtered, selfExpression)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user