From 39729c9580a5de30cd44d58eebe1a9c8e124fe75 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 29 Oct 2014 16:51:17 +0100 Subject: [PATCH] Logger: Fix level comparison --- library/Icinga/Logger/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Logger/Logger.php b/library/Icinga/Logger/Logger.php index 17f41ecba..a5458e498 100644 --- a/library/Icinga/Logger/Logger.php +++ b/library/Icinga/Logger/Logger.php @@ -156,7 +156,7 @@ class Logger */ public function log($level, $message) { - if ($this->writer !== null && $this->level >= $level) { + if ($this->writer !== null && $this->level <= $level) { $this->writer->log($level, $message); } }