add debug logging on unenvelop
This commit is contained in:
parent
cd021c9e1f
commit
4953d0c736
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ module DiasporaFederation
|
||||||
#
|
#
|
||||||
# @see http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-01.html
|
# @see http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-01.html
|
||||||
class MagicEnvelope
|
class MagicEnvelope
|
||||||
|
extend Logging
|
||||||
|
|
||||||
# encoding used for the payload data
|
# encoding used for the payload data
|
||||||
ENCODING = "base64url".freeze
|
ENCODING = "base64url".freeze
|
||||||
|
|
||||||
|
|
@ -123,6 +125,8 @@ module DiasporaFederation
|
||||||
|
|
||||||
data = read_and_decrypt_data(magic_env, cipher_params)
|
data = read_and_decrypt_data(magic_env, cipher_params)
|
||||||
|
|
||||||
|
logger.debug "unenvelop message from #{sender}:\n#{data}"
|
||||||
|
|
||||||
new(XmlPayload.unpack(Nokogiri::XML::Document.parse(data).root), sender)
|
new(XmlPayload.unpack(Nokogiri::XML::Document.parse(data).root), sender)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue