mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 06:53:53 +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) {
|
public static function setLevel($level=null) {
|
||||||
if (!$level) {
|
if (!$level) {
|
||||||
$level = self :: getConfig('level', self :: $default_level, 'string');
|
$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';
|
self :: $level = 'WARNING';
|
||||||
if ($level)
|
if ($level)
|
||||||
self :: warning("Invalid log level '$level' configured. Set log level to WARNING.");
|
self :: warning("Invalid log level '$level' configured. Set log level to WARNING.");
|
||||||
|
|
Loading…
Reference in a new issue