mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
do not return an error if we cannot fetch allowlists when starting the appsec (#3550)
This commit is contained in:
parent
49927f79a1
commit
48e3c8c5d4
1 changed files with 3 additions and 3 deletions
|
@ -418,11 +418,11 @@ func (w *AppsecSource) StreamingAcquisition(ctx context.Context, out chan types.
|
||||||
|
|
||||||
err = w.appsecAllowlistClient.Start(ctx, apiClient)
|
err = w.appsecAllowlistClient.Start(ctx, apiClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to fetch allowlists: %w", err)
|
w.logger.Errorf("failed to fetch allowlists for appsec, disabling them: %s", err)
|
||||||
|
} else {
|
||||||
|
w.appsecAllowlistClient.StartRefresh(ctx, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
w.appsecAllowlistClient.StartRefresh(ctx, t)
|
|
||||||
|
|
||||||
t.Go(func() error {
|
t.Go(func() error {
|
||||||
defer trace.CatchPanic("crowdsec/acquis/appsec/live")
|
defer trace.CatchPanic("crowdsec/acquis/appsec/live")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue