]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add some delivery logging
authorEvan Prodromou <evan@status.net>
Sun, 17 Jun 2012 14:10:52 +0000 (10:10 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Jun 2012 14:10:52 +0000 (10:10 -0400)
plugins/Realtime/RealtimePlugin.php

index 287e48e48475e4cb267a3ed2ec97c8754ce30ecf..aa1b5835e453abaada3ce98fcc8e40d113962fc6 100644 (file)
@@ -265,6 +265,13 @@ class RealtimePlugin extends Plugin
                         $profile = Profile::staticGet('id', $channel->user_id);
                     }
                     if ($notice->inScope($profile)) {
+                        $this->log(LOG_INFO, 
+                                   sprintf(_("Delivering notice %d to channel (%s, %s, %s) for user '%s'"),
+                                           $notice->id,
+                                           $channel->action,
+                                           $channel->arg1,
+                                           $channel->arg2,
+                                           ($profile) ? ($profile->nickname) : "<public>"));
                         $timeline = $this->_pathToChannel(array($channel->channel_key));
                         $this->_publish($timeline, $json);
                     }