Revert "Fix logger level"

This reverts commit 2374b64e90.
This commit is contained in:
Daniil Gentili 2024-07-15 09:55:59 +02:00
parent e123566f1b
commit 55775897d6

View File

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