Page MenuHomePhabricator

D17776.diff
No OneTemporary

D17776.diff

diff --git a/src/applications/config/option/PhabricatorAccessLogConfigOptions.php b/src/applications/config/option/PhabricatorAccessLogConfigOptions.php
--- a/src/applications/config/option/PhabricatorAccessLogConfigOptions.php
+++ b/src/applications/config/option/PhabricatorAccessLogConfigOptions.php
@@ -35,6 +35,7 @@
'P' => pht('The logged-in user PHID, if one is logged in.'),
'i' => pht('Request input, in bytes.'),
'o' => pht('Request output, in bytes.'),
+ 'I' => pht('Cluster instance name, if configured.'),
);
$http_map = $common_map + array(
diff --git a/src/infrastructure/log/PhabricatorAccessLog.php b/src/infrastructure/log/PhabricatorAccessLog.php
--- a/src/infrastructure/log/PhabricatorAccessLog.php
+++ b/src/infrastructure/log/PhabricatorAccessLog.php
@@ -30,6 +30,7 @@
'h' => php_uname('n'),
'p' => getmypid(),
'e' => time(),
+ 'I' => PhabricatorEnv::getEnvConfig('cluster.instance'),
));
self::$log = $log;
diff --git a/src/infrastructure/log/PhabricatorSSHLog.php b/src/infrastructure/log/PhabricatorSSHLog.php
--- a/src/infrastructure/log/PhabricatorSSHLog.php
+++ b/src/infrastructure/log/PhabricatorSSHLog.php
@@ -20,6 +20,7 @@
'h' => php_uname('n'),
'p' => getmypid(),
'e' => time(),
+ 'I' => PhabricatorEnv::getEnvConfig('cluster.instance'),
);
$sudo_user = PhabricatorEnv::getEnvConfig('phd.user');

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 2:56 PM (1 w, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7493590
Default Alt Text
D17776.diff (1 KB)

Event Timeline