Skip to content

Commit

Permalink
Logger: Fix level comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 29, 2014
1 parent 2698516 commit 39729c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Logger/Logger.php
Expand Up @@ -156,7 +156,7 @@ protected function createWriter(Zend_Config $config)
*/
public function log($level, $message)
{
if ($this->writer !== null && $this->level >= $level) {
if ($this->writer !== null && $this->level <= $level) {
$this->writer->log($level, $message);
}
}
Expand Down

0 comments on commit 39729c9

Please sign in to comment.