Add debugging logs.

This commit is contained in:
Roger Braun 2017-05-04 09:54:22 +02:00
parent 97257c692c
commit 151da344be

View File

@ -44,6 +44,7 @@ defmodule Pleroma.Web.Websub do
|> to_string |> to_string
signature = sign(sub.secret, response) signature = sign(sub.secret, response)
Logger.debug("Pushing to #{sub.callback}")
HTTPoison.post(sub.callback, response, [ HTTPoison.post(sub.callback, response, [
{"Content-Type", "application/atom+xml"}, {"Content-Type", "application/atom+xml"},
{"X-Hub-Signature", "sha1=#{signature}"} {"X-Hub-Signature", "sha1=#{signature}"}