1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Fix bug with level in GitProcessor (#1749)

This commit is contained in:
Grégoire Pineau
2022-08-17 23:30:28 +02:00
committed by GitHub
parent 8471abd5ef
commit 5df3238664
2 changed files with 13 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ class GitProcessor implements ProcessorInterface
public function __invoke(LogRecord $record): LogRecord
{
// return if the level is not high enough
if ($record->level < $this->level) {
if ($record->level->isLowerThan($this->level)) {
return $record;
}