Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15349378
D17776.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17776.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17776: Add "%I" (instance name) to application log formats
Attached
Detach File
Event Timeline
Log In to Comment