From be51d5e23ae4c533950fb8c9fcc54cd756dd1ea8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 26 Aug 2009 05:46:41 -0400 Subject: more log output in queue handlers --- lib/queuehandler.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/queuehandler.php b/lib/queuehandler.php index c2ff10f32..a170b11cd 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; } -- cgit v1.2.3-54-g00ecf