]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better debug logging in stomp queue manager
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Jul 2009 05:43:18 +0000 (01:43 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Jul 2009 05:43:18 +0000 (01:43 -0400)
lib/stompqueuemanager.php

index a6bac861b36fccd86c15fd9fb5a6036036396d08..5f0b88d8ad85e3c82655a94ae86025647bcb390a 100644 (file)
@@ -75,12 +75,12 @@ class StompQueueManager
                                    array ('created' => $notice->created));
 
         if (!$result) {
-            common_log(LOG_ERR, 'Error sending to '.$transport.' queue');
+            common_log(LOG_ERR, 'Error sending to '.$queue.' queue');
             return false;
         }
 
         common_log(LOG_DEBUG, 'complete remote queueing notice ID = '
-                   . $notice->id . ' for ' . $transport);
+                   . $notice->id . ' for ' . $queue);
     }
 
     function service($queue, $handler)
@@ -101,7 +101,7 @@ class StompQueueManager
                 $notice = Notice::staticGet($frame->body);
 
                 if ($handler->handle_notice($notice)) {
-                    $this->_log(LOG_INFO, 'Successfully handled notice '. $notice->id);
+                    $this->_log(LOG_INFO, 'Successfully handled notice '. $notice->id .' posted at ' . $frame->headers['created']);
                     $this->con->ack($frame);
                 }
             }