From 2040c0d347f9f704bd5222e082fdee511fcab7fe Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 29 Jul 2010 10:05:02 -0700 Subject: [PATCH] MS fixed lots of debug messages --- gpg/diaspora-test/pubring.gpg | Bin 37991 -> 37991 bytes gpg/diaspora-test/trustdb.gpg | Bin 1680 -> 1680 bytes lib/diaspora/webhooks.rb | 3 --- lib/message_handler.rb | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gpg/diaspora-test/pubring.gpg b/gpg/diaspora-test/pubring.gpg index edac5d95b216f263b94be3fe285f4da92da09f51..cabfdca741cbcbb6b7cfde5479c8b8e068be8eb6 100644 GIT binary patch delta 19 bcmaF9g6a7RrVUw&n;q@dLN})=UY7*`T5SkA delta 19 bcmaF9g6a7RrVUw&o2Qgrmff7Ds1*tTVOa>o diff --git a/gpg/diaspora-test/trustdb.gpg b/gpg/diaspora-test/trustdb.gpg index 87e4dbb8a4fa7498184172b4162397f70d2ff066..0302183a535bb58ef9d7bfba3c53bab87275b43f 100644 GIT binary patch delta 28 jcmbQhJAqe#F})z2nVFH5k%581CvfxOiGku9)ic=uTHXfg delta 28 jcmbQhJAqe#F})z2nVFH5k%581CtzFb#6aX~c+SHA{^ diff --git a/lib/diaspora/webhooks.rb b/lib/diaspora/webhooks.rb index c303fa5a7..c73530d11 100644 --- a/lib/diaspora/webhooks.rb +++ b/lib/diaspora/webhooks.rb @@ -28,12 +28,9 @@ module Diaspora end def push_to(recipients) - puts "FOOBATT" @@queue.add_hub_notification(APP_CONFIG[:pubsub_server], User.owner.url + self.class.to_s.pluralize.underscore + '.atom') unless recipients.empty? recipients.map!{|x| x = x.url + "receive/"} - puts self.class - puts "made it in here!" xml = self.class.build_xml_for(self) Rails.logger.info("Adding xml for #{self} to message queue to #{recipients}") @@queue.add_post_request( recipients, xml ) diff --git a/lib/message_handler.rb b/lib/message_handler.rb index 8d35cb1f3..3e76c2783 100644 --- a/lib/message_handler.rb +++ b/lib/message_handler.rb @@ -46,7 +46,7 @@ class MessageHandler case query.type when :post http = EventMachine::HttpRequest.new(query.destination).post :timeout => TIMEOUT, :body =>{:xml => query.body} - http.callback { puts query.destination; puts query.body; process; process} + http.callback { process; process} when :get http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT http.callback {send_to_seed(query, http.response); process}