Logger: Fix level comparison
This commit is contained in:
parent
2698516005
commit
39729c9580
|
@ -156,7 +156,7 @@ class Logger
|
||||||
*/
|
*/
|
||||||
public function log($level, $message)
|
public function log($level, $message)
|
||||||
{
|
{
|
||||||
if ($this->writer !== null && $this->level >= $level) {
|
if ($this->writer !== null && $this->level <= $level) {
|
||||||
$this->writer->log($level, $message);
|
$this->writer->log($level, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue