diff --git a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php --- a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php +++ b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php @@ -7,6 +7,7 @@ const STATUS_ALIVE = 'status-alive'; private $ids; + private $notIDs; private $status = self::STATUS_ALL; private $daemonClasses; private $allowStatusWrites; @@ -24,6 +25,11 @@ return $this; } + public function withoutIDs(array $ids) { + $this->notIDs = $ids; + return $this; + } + public function withStatus($status) { $this->status = $status; return $this; @@ -119,6 +125,13 @@ $this->ids); } + if ($this->notIDs) { + $where[] = qsprintf( + $conn_r, + 'id NOT IN (%Ld)', + $this->notIDs); + } + if ($this->getStatusConstants()) { $where[] = qsprintf( $conn_r,