MS fixed lots of debug messages
This commit is contained in:
parent
7a0db375ab
commit
2040c0d347
4 changed files with 1 additions and 4 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue