mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-19 23:56:17 +02:00
Merge remote-tracking branch 'fixe/webprocessor-referer'
Conflicts: src/Monolog/Processor/WebProcessor.php
This commit is contained in:
@@ -46,6 +46,10 @@ class WebProcessor
|
||||
return $record;
|
||||
}
|
||||
|
||||
if (!isset($this->serverData['HTTP_REFERER'])) {
|
||||
$this->serverData['HTTP_REFERER'] = null;
|
||||
}
|
||||
|
||||
$record['extra'] = array_merge(
|
||||
$record['extra'],
|
||||
array(
|
||||
@@ -53,6 +57,7 @@ class WebProcessor
|
||||
'ip' => $this->serverData['REMOTE_ADDR'],
|
||||
'http_method' => $this->serverData['REQUEST_METHOD'],
|
||||
'server_name' => $this->serverData['SERVER_NAME'],
|
||||
'referer' => $this->serverData['HTTP_REFERER'],
|
||||
)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user