Tweak levels

This commit is contained in:
Daniil Gentili 2024-06-21 19:24:10 +02:00
parent e310b235fa
commit ed02ae5e7b

View File

@ -94,7 +94,7 @@ class Logger extends AbstractLogger
throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $minLevel));
}
$this->minLevelIndex = self::$levels[$minLevel];
$this->minLevelIndex = max(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();