mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Removed second param from processors
This commit is contained in:
@@ -59,7 +59,7 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
|
||||
if ($this->processors) {
|
||||
foreach ($this->processors as $processor) {
|
||||
$record = call_user_func($processor, $record, $this);
|
||||
$record = call_user_func($processor, $record);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -152,7 +152,7 @@ class Logger
|
||||
}
|
||||
// found at least one, process message and dispatch it
|
||||
foreach ($this->processors as $processor) {
|
||||
$record = call_user_func($processor, $record, $this);
|
||||
$record = call_user_func($processor, $record);
|
||||
}
|
||||
while (isset($this->handlers[$handlerKey]) &&
|
||||
false === $this->handlers[$handlerKey]->handle($record)) {
|
||||
|
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Monolog\Processor;
|
||||
|
||||
use Monolog\Handler\HandlerInterface;
|
||||
|
||||
/**
|
||||
* Injects url/method and remote IP of the current web request in all records
|
||||
*
|
||||
@@ -25,7 +23,7 @@ class WebProcessor
|
||||
* @param HandlerInterface $handler
|
||||
* @return array
|
||||
*/
|
||||
public function __invoke(array $record, HandlerInterface $handler)
|
||||
public function __invoke(array $record)
|
||||
{
|
||||
$record['extra'] = array_merge(
|
||||
$record['extra'],
|
||||
|
Reference in New Issue
Block a user