1
0
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:
Jordi Boggiano
2012-04-22 11:22:27 +02:00
3 changed files with 22 additions and 1 deletions

View File

@@ -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'],
)
);