diff --git a/src/Monolog/Handler/RavenHandler.php b/src/Monolog/Handler/RavenHandler.php index 48f8f298..38fbeb25 100644 --- a/src/Monolog/Handler/RavenHandler.php +++ b/src/Monolog/Handler/RavenHandler.php @@ -73,6 +73,10 @@ class RavenHandler extends AbstractProcessingHandler return $record['level'] >= $level; }); + if (!$records) { + return; + } + // the record with the highest severity is the "main" one $record = array_reduce($records, function($highest, $record) { if($record['level'] >= $highest['level']) {