1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 22:42:38 +01:00

Update comments

This commit is contained in:
Jordi Boggiano 2014-12-04 15:11:17 +00:00
parent 09c28e1a45
commit 673e275c00

View File

@ -231,7 +231,7 @@ class Logger implements LoggerInterface
$levelName = static::getLevelName($level);
// check if any handler will handle this message
// check if any handler will handle this message so we can return early and save cycles
$handlerKey = null;
foreach ($this->handlers as $key => $handler) {
if ($handler->isHandling(array('level' => $level))) {
@ -239,7 +239,7 @@ class Logger implements LoggerInterface
break;
}
}
// none found
if (null === $handlerKey) {
return false;
}
@ -258,7 +258,6 @@ class Logger implements LoggerInterface
'extra' => array(),
);
// found at least one, process message and dispatch it
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}