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); } }