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

Fix WhatFailureGroupHandler::handleBatch when the handler has processors

This commit is contained in:
Chris Wilkinson
2017-07-12 07:45:50 +01:00
committed by Jordi Boggiano
parent 22b92c7c00
commit 3035d4a251
2 changed files with 33 additions and 0 deletions

View File

@@ -48,6 +48,16 @@ class WhatFailureGroupHandler extends GroupHandler
*/
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) {
try {
$handler->handleBatch($records);