File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,13 @@ public function getLastScannedFilePositionForQuery(?string $query = ''): ?int
104
104
public function earliestTimestamp (): int
105
105
{
106
106
return $ this ->getMetadata ('earliest_timestamp ' )
107
- ?? LogViewer::getFilesystem ()->lastModified ($ this ->path );
107
+ ?? LogViewer::getFilesystem ()->exists ( $ this -> path ) ? LogViewer:: getFilesystem ()-> lastModified ($ this ->path ) : 0 ;
108
108
}
109
109
110
110
public function latestTimestamp (): int
111
111
{
112
112
return $ this ->getMetadata ('latest_timestamp ' )
113
- ?? LogViewer::getFilesystem ()->lastModified ($ this ->path );
113
+ ?? LogViewer::getFilesystem ()->exists ( $ this -> path ) ? LogViewer:: getFilesystem ()-> lastModified ($ this ->path ) : 0 ;
114
114
}
115
115
116
116
public function scan (int $ maxBytesToScan = null , bool $ force = false ): void
You can’t perform that action at this time.
0 commit comments