diff --git a/cmd/crowdsec/output.go b/cmd/crowdsec/output.go index 8a7c98d40..7935ea5a9 100644 --- a/cmd/crowdsec/output.go +++ b/cmd/crowdsec/output.go @@ -21,7 +21,7 @@ func runOutput(input chan types.Event, overflow chan types.Event, holders []leak LOOP: for { select { - case <-bucketsTomb.Dying(): + case <-outputsTomb.Dying(): log.Infof("Flushing outputs") output.FlushAll() log.Infof("Shuting down output routines")