Skip to content

Commit 4ef0866

Browse files
committed
pkg/database: bubble up error for include_capi
unless we did intend to just log?
1 parent 1b3e07b commit 4ef0866

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/database/alertfilter.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"strings"
77
"time"
88

9-
log "github.com/sirupsen/logrus"
10-
119
"github.com/crowdsecurity/go-cs-lib/cstime"
1210

1311
"github.com/crowdsecurity/crowdsec/pkg/csnet"
@@ -171,7 +169,7 @@ func handleIncludeCapiFilter(value string, predicates *[]predicate.Alert) error
171169
),
172170
))
173171
} else if value != "true" {
174-
log.Errorf("invalid bool %q for include_capi", value)
172+
return fmt.Errorf("invalid bool %q for include_capi", value)
175173
}
176174

177175
return nil

0 commit comments

Comments
 (0)