Adding logging to pushing
This commit is contained in:
parent
5a5842dbdc
commit
e23b139495
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ module Diaspora
|
||||||
unless recipients.empty?
|
unless recipients.empty?
|
||||||
recipients.map!{|x| x = x.url + "receive/"}
|
recipients.map!{|x| x = x.url + "receive/"}
|
||||||
xml = self.class.build_xml_for([self])
|
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 )
|
@@queue.add_post_request( recipients, xml )
|
||||||
end
|
end
|
||||||
@@queue.process
|
@@queue.process
|
||||||
|
|
@ -72,6 +73,7 @@ module Diaspora
|
||||||
def push_to_url(url)
|
def push_to_url(url)
|
||||||
hook_url = url + "receive/"
|
hook_url = url + "receive/"
|
||||||
xml = self.class.build_xml_for([self])
|
xml = self.class.build_xml_for([self])
|
||||||
|
Rails.logger.info("Adding xml for #{self} to message queue to #{url}")
|
||||||
@@queue.add_post_request( [hook_url], xml )
|
@@queue.add_post_request( [hook_url], xml )
|
||||||
@@queue.process
|
@@queue.process
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue