mirror of
				https://github.com/Seldaek/monolog.git
				synced 2025-10-29 11:26:09 +01:00 
			
		
		
		
	Fix GroupHandler::handleBatch when the handler has processors, fixes #814
This commit is contained in:
		| @@ -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); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user