|
|
@@ -40,6 +40,12 @@ class WebProcessor
|
|
|
*/
|
|
|
public function __invoke(array $record)
|
|
|
{
|
|
|
+ // skip processing if for some reason request data
|
|
|
+ // is not present (CLI or wonky SAPIs)
|
|
|
+ if (!isset($this->serverData['REQUEST_URI'])) {
|
|
|
+ return $record;
|
|
|
+ }
|
|
|
+
|
|
|
$record['extra'] = array_merge(
|
|
|
$record['extra'],
|
|
|
array(
|