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