From: lain Date: Thu, 22 Feb 2018 13:57:35 +0000 (+0100) Subject: More logging. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2757682894412451f01134aa37d55e0f1f1dc377;p=akkoma More logging. --- diff --git a/lib/pleroma/plugs/http_signature.ex b/lib/pleroma/plugs/http_signature.ex index b1e0d91a7..7f40a20c0 100644 --- a/lib/pleroma/plugs/http_signature.ex +++ b/lib/pleroma/plugs/http_signature.ex @@ -1,6 +1,7 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do alias Pleroma.Web.HTTPSignatures import Plug.Conn + require Logger def init(options) do options @@ -11,6 +12,8 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do end def call(conn, opts) do + user = conn.params["actor"] + Logger.debug("Checking sig for #{user}") if get_req_header(conn, "signature") do conn = conn |> put_req_header("(request-target)", String.downcase("#{conn.method} #{conn.request_path}"))