Log when parse line files
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user