added a logger statement to the diaspora person parser
This commit is contained in:
parent
36342db7a8
commit
84e2800c7d
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ module Diaspora
|
|||
def self.parse_or_find_person_from_xml(xml)
|
||||
doc = Nokogiri::XML(xml) { |cfg| cfg.noblanks }
|
||||
person_xml = doc.xpath("//person").to_s
|
||||
Rails.logger.debug("We're in the parser: #{person_xml}")
|
||||
person_id = doc.xpath("//person/_id").text.to_s
|
||||
person = Person.first(:_id => person_id)
|
||||
person ? person : Person.from_xml( person_xml)
|
||||
|
|
|
|||
Loading…
Reference in a new issue