Skip to content

Commit

Permalink
Fix log level setting. closes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 17, 2024
1 parent 92a3ea2 commit 844609e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 844609e

Please sign in to comment.