diff --git a/src/Monolog/Handler/FingersCrossedHandler.php b/src/Monolog/Handler/FingersCrossedHandler.php index 8a98cb40..a70c2827 100644 --- a/src/Monolog/Handler/FingersCrossedHandler.php +++ b/src/Monolog/Handler/FingersCrossedHandler.php @@ -62,9 +62,7 @@ class FingersCrossedHandler extends AbstractHandler if (!$this->handler instanceof HandlerInterface) { throw new \RuntimeException("The factory callback should return a HandlerInterface"); } - foreach ($this->buffer as $record) { - $this->handler->handle($record); - } + $this->handler->handleBatch($this->buffer); $this->buffer = array(); } } else { @@ -89,4 +87,4 @@ class FingersCrossedHandler extends AbstractHandler { throw new \BadMethodCallException('This method should not be called directly on the FingersCrossedHandler.'); } -} \ No newline at end of file +}