Log when parse line files

This commit is contained in:
2023-02-14 23:09:23 -03:00
parent 44f94d4101
commit e59e91805b

View File

@ -47,7 +47,12 @@ class File
if (trim($line) === '') { if (trim($line) === '') {
continue; continue;
} }
$logs []= Log::parse($line); try {
$logs []= Log::parse($line);
} catch (\Exception $e) {
$this->getLogger()->debug($line);
throw $e;
}
} }
return array_reverse($logs); return array_reverse($logs);
} }