mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 08:36:33 +02:00
Fix issue in handleBatch when all records are below the minimum level, refs #203
This commit is contained in:
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user