PMCORE-2028 Standard log >> Case Derivation has an attribute "ip": false
This commit is contained in:
@@ -127,6 +127,11 @@ class JobsManager
|
|||||||
'constants' => $constants['user'],
|
'constants' => $constants['user'],
|
||||||
'session' => $session,
|
'session' => $session,
|
||||||
'server' => $_SERVER,
|
'server' => $_SERVER,
|
||||||
|
'phpEnv' => [
|
||||||
|
'HTTP_CLIENT_IP' => getenv('HTTP_CLIENT_IP'),
|
||||||
|
'HTTP_X_FORWARDED_FOR' => getenv('HTTP_X_FORWARDED_FOR'),
|
||||||
|
'REMOTE_ADDR' => getenv('REMOTE_ADDR'),
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,6 +154,13 @@ class JobsManager
|
|||||||
|
|
||||||
Propel::close();
|
Propel::close();
|
||||||
Propel::init(PATH_CONFIG . "databases.php");
|
Propel::init(PATH_CONFIG . "databases.php");
|
||||||
|
|
||||||
|
foreach ($environment['phpEnv'] as $key => $value) {
|
||||||
|
if (empty($value)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
putenv("{$key}={$value}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user