1
0
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:
Jordi Boggiano
2013-07-28 18:54:16 +02:00
parent ec3f56a830
commit 87cca51a32

View File

@@ -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']) {