detailed debug llog for file reader
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s

This commit is contained in:
Corban-Lee Jones 2024-12-11 22:55:55 +00:00
parent 1ff4f4e831
commit 41b50e352f

View File

@ -28,6 +28,7 @@ class LogFileReader:
raise FileNotFoundError(self.file_path)
async with aiofiles.open(self.file_path, "r", encoding="utf-8") as file:
log.debug("file open, and jumping to line: %s", self._last_line_number)
if self._last_line_number == 0 and not self.track_from_start:
await file.seek(0, 2)
self._last_line_number = await file.tell()