From: Evan Prodromou Date: Sun, 17 Jun 2012 14:10:52 +0000 (-0400) Subject: Add some delivery logging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec264fcd904b6e8d8f38a3112364076cd2155053;p=quix0rs-gnu-social.git Add some delivery logging --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 287e48e484..aa1b5835e4 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -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) : "")); $timeline = $this->_pathToChannel(array($channel->channel_key)); $this->_publish($timeline, $json); }