From e59e91805b279c1019ccd97a4906ce9b9d577b2b Mon Sep 17 00:00:00 2001 From: Aldarien Date: Tue, 14 Feb 2023 23:09:23 -0300 Subject: [PATCH] Log when parse line files --- app/src/Log/File.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/Log/File.php b/app/src/Log/File.php index aab13b5..3a05779 100644 --- a/app/src/Log/File.php +++ b/app/src/Log/File.php @@ -47,7 +47,12 @@ class File if (trim($line) === '') { continue; } - $logs []= Log::parse($line); + try { + $logs []= Log::parse($line); + } catch (\Exception $e) { + $this->getLogger()->debug($line); + throw $e; + } } return array_reverse($logs); }