mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-21 07:53:50 +01:00
LSlog_console: fix stderr switching on message other than INFO / DEBUG
This commit is contained in:
parent
5696eb99c4
commit
c232a9899d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class LSlog_console extends LSlog_handler {
|
||||||
**/
|
**/
|
||||||
public function logging($level, $message, $logger=null) {
|
public function logging($level, $message, $logger=null) {
|
||||||
return fwrite(
|
return fwrite(
|
||||||
($level > 1?$this -> stderr:$this -> stdout),
|
(in_array($level, array('INFO', 'DEBUG'))?$this -> stdout:$this -> stderr),
|
||||||
$this -> format($level, $message, $logger)."\n"
|
$this -> format($level, $message, $logger)."\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue