From e3c85760f1944f54afa167cd68e71803ca0357ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Helfensd=C3=B6rfer?= Date: Fri, 27 Apr 2018 11:59:58 +0200 Subject: [PATCH] Do not catch database errors --- src/DatabaseHandler.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/DatabaseHandler.php b/src/DatabaseHandler.php index 02eaa30..a7465a7 100644 --- a/src/DatabaseHandler.php +++ b/src/DatabaseHandler.php @@ -78,16 +78,13 @@ protected function write(array $record) } } - try { - DB::connection($this->connection)->table($this->table)->insert([ - 'message' => $record['message'], - 'context' => $context, - 'level' => $record['level'], - 'channel' => $record['channel'], - 'created_at' => $record['datetime'], - 'extra' => serialize($record['extra']), - ]); - } catch (\Exception $e) { - } + DB::connection($this->connection)->table($this->table)->insert([ + 'message' => $record['message'], + 'context' => $context, + 'level' => $record['level'], + 'channel' => $record['channel'], + 'created_at' => $record['datetime'], + 'extra' => serialize($record['extra']), + ]); } }