mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 01:56:18 +02:00
Fix some issues, bump phpunit version
This commit is contained in:
@@ -301,6 +301,7 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
datetime: new DateTimeImmutable($this->microsecondTimestamps, $this->timezone),
|
||||
extra: [],
|
||||
);
|
||||
$handled = false;
|
||||
|
||||
foreach ($this->handlers as $handler) {
|
||||
if (false === $recordInitialized) {
|
||||
@@ -323,6 +324,7 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
|
||||
// once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted
|
||||
try {
|
||||
$handled = true;
|
||||
if (true === $handler->handle($record)) {
|
||||
break;
|
||||
}
|
||||
@@ -333,7 +335,7 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
}
|
||||
}
|
||||
|
||||
return null !== $record;
|
||||
return $handled;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user