detailed debug llog for file reader
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s
This commit is contained in:
parent
1ff4f4e831
commit
41b50e352f
@ -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()
|
||||
|
Reference in New Issue
Block a user