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?
|
||||
recipients.map!{|x| x = x.url + "receive/"}
|
||||
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 )
|
||||
end
|
||||
@@queue.process
|
||||
|
|
@ -72,6 +73,7 @@ module Diaspora
|
|||
def push_to_url(url)
|
||||
hook_url = url + "receive/"
|
||||
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.process
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue