From: Evan Prodromou Date: Wed, 26 Aug 2009 09:46:41 +0000 (-0400) Subject: more log output in queue handlers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be51d5e23ae4c533950fb8c9fcc54cd756dd1ea8;p=quix0rs-gnu-social.git more log output in queue handlers --- diff --git a/lib/queuehandler.php b/lib/queuehandler.php index c2ff10f32f..a170b11cd6 100644 --- a/lib/queuehandler.php +++ b/lib/queuehandler.php @@ -86,6 +86,7 @@ class QueueHandler extends Daemon function run() { if (!$this->start()) { + $this->log(LOG_WARNING, 'failed to start'); return false; } @@ -98,9 +99,15 @@ class QueueHandler extends Daemon $qm->service($queue, $this); + $this->log(LOG_INFO, 'finished servicing the queue'); + if (!$this->finish()) { + $this->log(LOG_WARNING, 'failed to clean up'); return false; } + + $this->log(LOG_INFO, 'terminating normally'); + return true; }