parent
7525f11975
commit
747065229e
2 changed files with 5 additions and 6 deletions
|
@ -41,7 +41,6 @@ func (v *visitor) Exit(node *ast.Node) {
|
|||
v.newVar = true
|
||||
v.currentID = n.Value
|
||||
} else {
|
||||
v.newVar = false
|
||||
fullVar := fmt.Sprintf("%s.%s", v.currentID, strings.Join(v.properties, "."))
|
||||
v.vars = append(v.vars, fullVar)
|
||||
v.properties = []string{}
|
||||
|
|
|
@ -159,13 +159,13 @@ func PourItemToHolders(parsed types.Event, holders []BucketFactory, buckets *Buc
|
|||
holder.logger.Errorf("unexpected non-bool return : %T", output)
|
||||
log.Fatalf("Filter issue")
|
||||
}
|
||||
|
||||
if holder.Debug {
|
||||
holder.ExprDebugger.Run(holder.logger, condition, exprhelpers.GetExprEnv(map[string]interface{}{"evt": &parsed}))
|
||||
}
|
||||
if !condition {
|
||||
holder.logger.Debugf("eval(FALSE) %s", holder.Filter)
|
||||
//log.Debugf("%s -> FALSE", holder.Filter)
|
||||
//holder.logger.Debugf("Filter eval failed")
|
||||
holder.logger.Debugf("Event leaving node : ko")
|
||||
continue
|
||||
} else {
|
||||
holder.logger.Debugf("eval(TRUE) %s", holder.Filter)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue