This commit is contained in:
Mateusz Gruszczyński
2026-08-17 10:07:19 +02:00
parent 074d17be89
commit cc3c446c8e
29 changed files with 627 additions and 105 deletions
+7
View File
@@ -59,6 +59,13 @@ class EVEWatcher(threading.Thread):
except OSError as exc:
print(f"[eve] file error: {exc}", flush=True)
time.sleep(1.0)
except Exception as exc:
# A transient downstream failure (SQLite/Redis/NDR/etc.) must
# not permanently kill the EVE watcher while the container and
# Rust data-plane continue to look healthy.
self.stats.inc("eve_runtime_errors")
print(f"[eve] processing error: {exc}", flush=True)
time.sleep(0.5)
def _follow_file(self) -> None:
with open(self.path, "r", encoding="utf-8", errors="replace") as handle: