Add debugging logs.
This commit is contained in:
parent
97257c692c
commit
151da344be
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ def publish(topic, user, activity) 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}"}
|
||||||
|
|
Loading…
Reference in a new issue