diff --git a/lib/message_handler.rb b/lib/message_handler.rb index 7824021378a5e3e8aa15272ccd5b208cc02e1056..e3890d94f2afb2e1e17e12d204ed04274f95674d 100644 --- a/lib/message_handler.rb +++ b/lib/message_handler.rb @@ -21,7 +21,6 @@ class MessageHandler end def add_hub_notification(hub_url, feed_url) - Rails.logger.info("in message handler") @queue.push(Message.new(:hub_publish, hub_url, :body => feed_url)) end @@ -35,8 +34,8 @@ class MessageHandler http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT http.callback {process} when :hub_publish - http = EventMachine::PubSubHubbub.new(query.destination).publish :timeout => TIMEOUT - http.callback {Rails.logger.info("got into hub_publish"); process} + http = EventMachine::PubSubHubbub.new(query.destination).publish query.body, :timeout => TIMEOUT + http.callback {process} else raise "message is not a type I know!" end