From 5e5fb91b68d00f0ab2e2bad3d66bc67d1d339fb2 Mon Sep 17 00:00:00 2001 From: Brady Vercher Date: Thu, 28 Jan 2021 14:27:31 -0800 Subject: [PATCH] Fix the operator in the logger for checking the minimum level code. --- src/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } /**