From: Michael Tremer Date: Wed, 6 Aug 2025 16:00:02 +0000 (+0100) Subject: suricata-reporter: Don't let workers terminate if something goes wrong X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7366da0e2688fed862f7e2eddd04332ae2902f0;p=ipfire-2.x.git suricata-reporter: Don't let workers terminate if something goes wrong Signed-off-by: Michael Tremer --- diff --git a/config/suricata/suricata-reporter b/config/suricata/suricata-reporter index 6b35e4c2a..1a055717c 100644 --- a/config/suricata/suricata-reporter +++ b/config/suricata/suricata-reporter @@ -287,7 +287,12 @@ class Worker(multiprocessing.Process): #log.debug("Received event in worker %s: %s" % (self.pid, event)) # Process the event - self.process(event) + try: + self.process(event) + + # Log any exceptions, but keep going + except Exception as e: + log.error("Failed to process: %s" % e) # Optimize the database before exiting log.debug("Optimizing the database")