diff --git a/src/Base.php b/src/Base.php index f92ced2..c7a7e3e 100644 --- a/src/Base.php +++ b/src/Base.php @@ -229,10 +229,10 @@ protected function execute() public function setLogLevel($level) { if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level'); - $enable = true; + $enable = false; foreach (array_keys($this->loglevel) as $l) { + if ($l == $level) $enable = true; $this->loglevel[$l]['enabled'] = $enable; - if ($l == $level) $enable = false; } }