Logger bugfix
This commit is contained in:
parent
febb31d01d
commit
abe952bcc0
@ -70,18 +70,6 @@ class Logger
|
||||
$this->colors[self::WARNING] = implode(';', [self::foreground['white'], self::set['dim'], self::background['red']]);
|
||||
$this->colors[self::ERROR] = implode(';', [self::foreground['white'], self::set['bold'], self::background['red']]);
|
||||
$this->colors[self::FATAL_ERROR] = implode(';', [self::foreground['red'], self::set['bold'], self::background['light_gray']]);
|
||||
|
||||
if (!self::$printed) {
|
||||
$this->colors[self::NOTICE] = implode(';', [self::foreground['light_gray'], self::set['bold'], self::background['blue']]);
|
||||
|
||||
$this->logger('MadelineProto');
|
||||
$this->logger('Copyright (C) 2016-2018 Daniil Gentili');
|
||||
$this->logger('Licensed under AGPLv3');
|
||||
$this->logger('https://github.com/danog/MadelineProto');
|
||||
|
||||
$this->colors[self::NOTICE] = implode(';', [self::foreground['yellow'], self::set['bold']]);
|
||||
self::$printed = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static function log($param, $level = self::NOTICE)
|
||||
@ -96,6 +84,17 @@ class Logger
|
||||
if ($level > $this->level || $this->mode === 0) {
|
||||
return false;
|
||||
}
|
||||
if (!self::$printed) {
|
||||
$this->colors[self::NOTICE] = implode(';', [self::foreground['light_gray'], self::set['bold'], self::background['blue']]);
|
||||
|
||||
$this->logger('MadelineProto');
|
||||
$this->logger('Copyright (C) 2016-2018 Daniil Gentili');
|
||||
$this->logger('Licensed under AGPLv3');
|
||||
$this->logger('https://github.com/danog/MadelineProto');
|
||||
|
||||
$this->colors[self::NOTICE] = implode(';', [self::foreground['yellow'], self::set['bold']]);
|
||||
self::$printed = true;
|
||||
}
|
||||
if ($this->mode === 4) {
|
||||
return call_user_func_array($this->optional, [$param, $level]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user