Skip to content

Commit

Permalink
Do not catch database errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer authored Apr 27, 2018
1 parent d62112c commit e3c8576
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/DatabaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
]);
}
}

0 comments on commit e3c8576

Please sign in to comment.