From bfd3213cc90793ac3d71e13d2da4f703bca0d8bb Mon Sep 17 00:00:00 2001 From: Jonas Hahn Date: Sun, 7 Jun 2026 22:15:37 +0200 Subject: [PATCH] logs --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3122803..69d1667 100644 --- a/main.py +++ b/main.py @@ -39,8 +39,11 @@ def main(): cmd += ["--after-cursor", cur] out = subprocess.check_output(cmd, text=True) + lines = out.splitlines() - for line in out.splitlines(): + print(f"Must parse {len(lines)}") + for line in lines: + print(line) if not line or not line[0].isdigit(): continue @@ -58,6 +61,7 @@ def main(): ip = m.group(1) # store raw event + print(f"Inserting {ip}") db.execute("INSERT INTO failures VALUES (?, ?)", (ts, ip)) # check cache @@ -90,3 +94,4 @@ def main(): if __name__ == "__main__": main() + print("Parsed everything")