mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSlog : fix setLevel error
This commit is contained in:
parent
d07fb3915c
commit
8c417b6bc1
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class LSlog {
|
|||
public static function setLevel($level=null) {
|
||||
if (!$level) {
|
||||
$level = self :: getConfig('level', self :: $default_level, 'string');
|
||||
if (!array_key_exists(self :: $level, self :: $levels)) {
|
||||
if (!array_key_exists($level, self :: $levels)) {
|
||||
self :: $level = 'WARNING';
|
||||
if ($level)
|
||||
self :: warning("Invalid log level '$level' configured. Set log level to WARNING.");
|
||||
|
|
Loading…
Reference in a new issue