From ec264fcd904b6e8d8f38a3112364076cd2155053 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Jun 2012 10:10:52 -0400 Subject: [PATCH] Add some delivery logging --- plugins/Realtime/RealtimePlugin.php | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.39.5