mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
reduce noise on daemon console
Summary: this suppresses displaying entries that have not been in the running state for more than 3 days. note: We should probably kill off these dead rows similar to the code at the top of the loop, but without checking to see if we're the same host and the item is still live, or have some other cruft removal job to effect the same. Test Plan: load /daemon/ and rejoice that there are fewer crufty rows. Reviewers: vrana, nh Reviewed By: nh CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D5299
This commit is contained in:
parent
4e535b03e5
commit
eba51d16b9
1 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,15 @@ final class PhabricatorDaemonLogListView extends AphrontView {
|
|||
$symbol = '?';
|
||||
}
|
||||
|
||||
if ($status != PhabricatorDaemonLog::STATUS_RUNNING &&
|
||||
$log->getDateModified() + (3 * 86400) < time()) {
|
||||
// Don't show rows that haven't been running for more than
|
||||
// three days. We should probably prune these out of the
|
||||
// DB similar to the code above, but we don't need to be
|
||||
// conservative and do it only on the same host
|
||||
continue;
|
||||
}
|
||||
|
||||
$running = phutil_tag(
|
||||
'span',
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue