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

Merge remote-tracking branch 'mttjohnson/master'

This commit is contained in:
Jordi Boggiano
2015-11-26 23:39:59 +00:00

View File

@@ -315,9 +315,17 @@ class Logger implements LoggerInterface
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
while (isset($this->handlers[$handlerKey]) &&
false === $this->handlers[$handlerKey]->handle($record)) {
$handlerKey++;
$foundStartingKey = false;
foreach ($this->handlers as $key => $handler) {
if ($key === $handlerKey) {
$foundStartingKey = true;
}
if ($foundStartingKey === false) {
continue;
}
if (true === $handler->handle($record)) {
break;
}
}
return true;