From c15162c9b909a4cadaffdec2786f48cc046933c4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 21 Jun 2024 19:25:04 +0200 Subject: [PATCH] Tweak levels --- src/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logger.php b/src/Logger.php index 6267286..24853b7 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -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();