fix log
This commit is contained in:
parent
392f45969f
commit
c1266f5e9f
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ func LoadBucket(g *BucketFactory, dataDir string) error {
|
||||||
|
|
||||||
if g.Filter == "" {
|
if g.Filter == "" {
|
||||||
g.logger.Warningf("Bucket without filter, abort.")
|
g.logger.Warningf("Bucket without filter, abort.")
|
||||||
return fmt.Errorf("bucket doesn't have filter")
|
return fmt.Errorf("bucket without filter directive")
|
||||||
}
|
}
|
||||||
g.RunTimeFilter, err = expr.Compile(g.Filter, expr.Env(exprhelpers.GetExprEnv(map[string]interface{}{"evt": &types.Event{}})))
|
g.RunTimeFilter, err = expr.Compile(g.Filter, expr.Env(exprhelpers.GetExprEnv(map[string]interface{}{"evt": &types.Event{}})))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue