Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | public static function runHTTPRequest(AphrontHTTPSink $sink) { | ||||
| $debug_time_limit = PhabricatorEnv::getEnvConfig('debug.time-limit'); | $debug_time_limit = PhabricatorEnv::getEnvConfig('debug.time-limit'); | ||||
| if ($debug_time_limit) { | if ($debug_time_limit) { | ||||
| PhabricatorStartup::setDebugTimeLimit($debug_time_limit); | PhabricatorStartup::setDebugTimeLimit($debug_time_limit); | ||||
| } | } | ||||
| // This is the earliest we can get away with this, we need env config first. | // This is the earliest we can get away with this, we need env config first. | ||||
| PhabricatorAccessLog::init(); | PhabricatorAccessLog::init(); | ||||
| $access_log = PhabricatorAccessLog::getLog(); | $access_log = PhabricatorAccessLog::getLog(); | ||||
| PhabricatorStartup::setGlobal('log.access', $access_log); | PhabricatorStartup::setAccessLog($access_log); | ||||
| $access_log->setData( | $access_log->setData( | ||||
| array( | array( | ||||
| 'R' => AphrontRequest::getHTTPHeader('Referer', '-'), | 'R' => AphrontRequest::getHTTPHeader('Referer', '-'), | ||||
| 'r' => idx($_SERVER, 'REMOTE_ADDR', '-'), | 'r' => idx($_SERVER, 'REMOTE_ADDR', '-'), | ||||
| 'M' => idx($_SERVER, 'REQUEST_METHOD', '-'), | 'M' => idx($_SERVER, 'REQUEST_METHOD', '-'), | ||||
| )); | )); | ||||
| DarkConsoleXHProfPluginAPI::hookProfiler(); | DarkConsoleXHProfPluginAPI::hookProfiler(); | ||||
| ▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines | |||||