debug logging for send magic envelope
This commit is contained in:
parent
72ea858e25
commit
8d422ddff1
1 changed files with 4 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ 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
|
include Logging
|
||||||
|
|
||||||
# encoding used for the payload data
|
# encoding used for the payload data
|
||||||
ENCODING = "base64url".freeze
|
ENCODING = "base64url".freeze
|
||||||
|
|
@ -135,7 +135,9 @@ module DiasporaFederation
|
||||||
# the payload data as string
|
# the payload data as string
|
||||||
# @return [String] payload data
|
# @return [String] payload data
|
||||||
def payload_data
|
def payload_data
|
||||||
@payload_data ||= XmlPayload.pack(@payload).to_xml.strip
|
@payload_data ||= XmlPayload.pack(@payload).to_xml.strip.tap do |data|
|
||||||
|
logger.debug "send payload:\n#{data}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def key_id
|
def key_id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue