1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 09:06:10 +02:00

Make the RavenHandler picks the first highest record as main

This commit is contained in:
Tugdual Saunier
2016-10-11 13:01:36 +01:00
parent 214b8ef34b
commit d234839de1
2 changed files with 27 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ class RavenHandler extends AbstractProcessingHandler
// the record with the highest severity is the "main" one
$record = array_reduce($records, function ($highest, $record) {
if ($record['level'] >= $highest['level']) {
if ($record['level'] > $highest['level']) {
return $record;
}