fslogix separation

This commit is contained in:
Ludwig Lehnert
2026-08-12 10:20:32 +00:00
parent 14874e504e
commit 0ea17c6401
10 changed files with 633 additions and 153 deletions
+4 -1
View File
@@ -161,13 +161,16 @@ def main() -> int:
log(f"Watching {SAMBA_LOG_GLOB}; storing events in SQLite")
try:
while not STOP:
backfilled = 0
try:
count = collect_once(store)
if count:
log(f"Stored {count} event(s)")
store.backfill_rollups()
backfilled = store.backfill_rollups()
except Exception as exc: # pylint: disable=broad-except
log(f"Collector cycle failed: {exc}")
if backfilled:
continue
time.sleep(POLL_SECONDS)
finally:
store.close()