Skip to content

Commit

Permalink
Loggly handler loglevel comparison statement fixed (#1841)
Browse files Browse the repository at this point in the history
Co-authored-by: omerimzali <omer.imzali@gmail.com>
  • Loading branch information
omerimzali and omerimzali authored Oct 27, 2023
1 parent bd1758d commit 253d2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/Handler/LogglyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function handleBatch(array $records): void
$level = $this->level;

$records = array_filter($records, function ($record) use ($level) {
return ($record->level >= $level);
return ($record->level->value >= $level->value);
});

if (\count($records) > 0) {
Expand Down

0 comments on commit 253d2f1

Please sign in to comment.