Actual fix -- MOVED TO TEMPLATE
This commit is contained in:
1 parent
7ec0e11938
commit
63550d5af3
2 files changed
+1
-9
No files matched your search
+1
-5
@@ -417,11 +417,7 @@ 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:
|
||||
await f.seek(0)
|
||||
except:
|
||||
pass
|
||||
async with await open_file(self.model_log_file, encoding='utf-8', errors='ignore') as f:
|
||||
while True:
|
||||
line = await f.readline()
|
||||
if line:
|
||||
|
||||
Reference in new issue
Block a user