mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 01:56:18 +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;
|
return $record['level'] >= $level;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!$records) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// the record with the highest severity is the "main" one
|
// the record with the highest severity is the "main" one
|
||||||
$record = array_reduce($records, function($highest, $record) {
|
$record = array_reduce($records, function($highest, $record) {
|
||||||
if($record['level'] >= $highest['level']) {
|
if($record['level'] >= $highest['level']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user