Skip to content

Commit

Permalink
Fix the operator in the logger for checking the minimum level code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyvercher committed Jan 28, 2021
1 parent 2473189 commit 5e5fb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit 5e5fb91

Please sign in to comment.