1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Make bin/phd debug quieter by default

Summary:
By default, `bin/phd debug` activates `--trace`, which is incredibly verbose.

Instead, be moderately verbose by default, and only include tracing if `--trace` was passed to `bin/phd debug`.

See also D15422.

Test Plan:
  - Ran `bin/phd debug task`, got moderate amount of most useful debug output.
  - Ran `bin/phd debug task --trace`, got very verbose, detailed low-level debug output.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15423
This commit is contained in:
epriestley 2016-03-06 16:01:11 -08:00
parent 19eee427ad
commit 16a584ac7e

View file

@ -158,8 +158,10 @@ abstract class PhabricatorDaemonManagementWorkflow
$this->printLaunchingDaemons($daemons, $debug);
$trace = PhutilArgumentParser::isTraceModeEnabled();
$flags = array();
if ($debug || PhabricatorEnv::getEnvConfig('phd.trace')) {
if ($trace || PhabricatorEnv::getEnvConfig('phd.trace')) {
$flags[] = '--trace';
}