1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Fix GroupHandler::handleBatch when the handler has processors, fixes #814

This commit is contained in:
Jordi Boggiano
2016-07-02 14:48:22 +01:00
parent d9be260f3d
commit 69fb2aa1c1
2 changed files with 33 additions and 0 deletions

View File

@@ -75,6 +75,16 @@ class GroupHandler extends AbstractHandler
*/
public function handleBatch(array $records)
{
if ($this->processors) {
$processed = array();
foreach ($records as $record) {
foreach ($this->processors as $processor) {
$processed[] = call_user_func($processor, $record);
}
}
$records = $processed;
}
foreach ($this->handlers as $handler) {
$handler->handleBatch($records);
}