Page MenuHomePhabricator

D9606.id23032.diff
No OneTemporary

D9606.id23032.diff

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,

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 5, 9:39 PM (15 h, 11 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6674618
Default Alt Text
D9606.id23032.diff (964 B)

Event Timeline