@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add "%I" (instance name) to application log formats

Summary:
Ref T12611. Currently, the HTTP/SSH logs don't have an option to include the instance name.

Add such an option.

Leave it out of the default logs because most installs don't use this.

Test Plan: See next changes.

Reviewers: chad, amckinley

Reviewed By: chad

Maniphest Tasks: T12611

Differential Revision: https://secure.phabricator.com/D17776

+3
+1
src/applications/config/option/PhabricatorAccessLogConfigOptions.php
··· 35 35 'P' => pht('The logged-in user PHID, if one is logged in.'), 36 36 'i' => pht('Request input, in bytes.'), 37 37 'o' => pht('Request output, in bytes.'), 38 + 'I' => pht('Cluster instance name, if configured.'), 38 39 ); 39 40 40 41 $http_map = $common_map + array(
+1
src/infrastructure/log/PhabricatorAccessLog.php
··· 30 30 'h' => php_uname('n'), 31 31 'p' => getmypid(), 32 32 'e' => time(), 33 + 'I' => PhabricatorEnv::getEnvConfig('cluster.instance'), 33 34 )); 34 35 35 36 self::$log = $log;
+1
src/infrastructure/log/PhabricatorSSHLog.php
··· 20 20 'h' => php_uname('n'), 21 21 'p' => getmypid(), 22 22 'e' => time(), 23 + 'I' => PhabricatorEnv::getEnvConfig('cluster.instance'), 23 24 ); 24 25 25 26 $sudo_user = PhabricatorEnv::getEnvConfig('phd.user');