Add bin/phd log <id> to dump all logs to the CLI

Summary: Ref T3557. Make it easier to access full daemon logs from the CLI.

Test Plan: {F51265}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3557

Differential Revision: https://secure.phabricator.com/D6547
This commit is contained in:
epriestley
2013-07-23 12:48:45 -07:00
parent 36c1359230
commit 88530ba053
4 changed files with 86 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ final class PhabricatorDaemonLogViewController
$view = id(new PhabricatorPropertyListView())
->setUser($viewer);
$id = $daemon->getID();
$c_epoch = $daemon->getDateCreated();
$u_epoch = $daemon->getDateModified();
@@ -165,6 +166,13 @@ final class PhabricatorDaemonLogViewController
),
$argv));
$view->addProperty(
pht('View Full Logs'),
phutil_tag(
'tt',
array(),
"phabricator/ $ ./bin/phd log {$id}"));
return $view;
}