mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Tweak levels
This commit is contained in:
parent
ed02ae5e7b
commit
c15162c9b9
@ -94,7 +94,7 @@ class Logger extends AbstractLogger
|
||||
throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $minLevel));
|
||||
}
|
||||
|
||||
$this->minLevelIndex = max(self::$levels[$minLevel], self::$levels[self::$madelineLevels[MadelineProto\Logger::VERBOSE]]);
|
||||
$this->minLevelIndex = min(self::$levels[$minLevel], self::$levels[self::$madelineLevels[MadelineProto\Logger::VERBOSE]]);
|
||||
$this->formatter = $formatter ?: $this->format(...);
|
||||
$pipe = new Pipe(PHP_INT_MAX);
|
||||
$this->stdout = $pipe->getSink();
|
||||
|
Loading…
Reference in New Issue
Block a user