From 253d2f1350c9d6193b5c3d16a2e05f5a1bc69397 Mon Sep 17 00:00:00 2001 From: omerimzali Date: Fri, 27 Oct 2023 14:41:44 +0300 Subject: [PATCH] Loggly handler loglevel comparison statement fixed (#1841) Co-authored-by: omerimzali --- src/Monolog/Handler/LogglyHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/LogglyHandler.php b/src/Monolog/Handler/LogglyHandler.php index b16fe6561..6a9a20e01 100644 --- a/src/Monolog/Handler/LogglyHandler.php +++ b/src/Monolog/Handler/LogglyHandler.php @@ -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) {