From 191fbbfe186731361c6058235a67d2f9495d9e23 Mon Sep 17 00:00:00 2001 From: Lucas Armand Date: Mon, 17 Nov 2025 10:44:13 -0800 Subject: [PATCH] try seek --- lib/backend.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/backend.py b/lib/backend.py index e8ac112..7ac43ed 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -418,6 +418,10 @@ class Backend: async def tail_log(): log.debug(f"tailing file: {self.model_log_file}") async with await open_file(self.model_log_file, mode="r", encoding='utf-8', errors='ignore') as f: + try: + f.seek(0) + except: + pass while True: line = await f.readline() if line: