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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user