Skip to content

Commit

Permalink
fix logger level wrong type (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxyw committed Dec 29, 2021
1 parent 95e47b3 commit 932ed42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneBot/Logger/Console/ConsoleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ConsoleLogger extends AbstractLogger

public function __construct($logLevel = LogLevel::INFO)
{
self::$logLevel = $logLevel;
self::$logLevel = array_flip(self::$levels)[$logLevel];
}

public function colorize($string, $level)
Expand Down

0 comments on commit 932ed42

Please sign in to comment.