Logger: Fix level comparison

This commit is contained in:
Eric Lippmann 2014-10-29 16:51:17 +01:00
parent 2698516005
commit 39729c9580
1 changed files with 1 additions and 1 deletions

View File

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