]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
more log output in queue handlers
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 26 Aug 2009 09:46:41 +0000 (05:46 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 26 Aug 2009 09:50:34 +0000 (05:50 -0400)
lib/queuehandler.php

index c2ff10f32f07f4858e933b67fba8d8987c1b9e18..a170b11cd660dac6861fdeb5e6685a484c176ae6 100644 (file)
@@ -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;
     }