diff --git a/src/Logger.php b/src/Logger.php index db6066f..85ec72e 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -183,7 +183,7 @@ protected function to_string( $value ): string { * @return bool */ protected function handle_level( $level ): bool { - return $this->minimum_level_code >= 0 && $this->minimum_level_code >= $this->get_level_code( $level ); + return $this->minimum_level_code >= 0 && $this->minimum_level_code <= $this->get_level_code( $level ); } /**