mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 03:24:04 +00:00
Grammar consistency
Most log messages are sentence fragments so make them consistent by removing periods. Log messages that are expressing urgency with ! or pending more work with "..." are OK.
This commit is contained in:
parent
402e775a80
commit
04395cb9bd
|
@ -36,9 +36,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
||||||
def inbox(conn, params) do
|
def inbox(conn, params) do
|
||||||
headers = Enum.into(conn.req_headers, %{})
|
headers = Enum.into(conn.req_headers, %{})
|
||||||
if !(String.contains?(headers["signature"] || "", params["actor"])) do
|
if !(String.contains?(headers["signature"] || "", params["actor"])) do
|
||||||
Logger.info("Signature not from author, relayed message, ignoring.")
|
Logger.info("Signature not from author, relayed message, ignoring")
|
||||||
else
|
else
|
||||||
Logger.info("Signature error.")
|
Logger.info("Signature error")
|
||||||
Logger.info("Could not validate #{params["actor"]}")
|
Logger.info("Could not validate #{params["actor"]}")
|
||||||
Logger.info(inspect(conn.req_headers))
|
Logger.info(inspect(conn.req_headers))
|
||||||
end
|
end
|
||||||
|
|
|
@ -36,7 +36,7 @@ defmodule Pleroma.Web.HTTPSignatures do
|
||||||
if validate_conn(conn, public_key) do
|
if validate_conn(conn, public_key) do
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
Logger.debug("Could not validate, re-fetching user and trying one more time.")
|
Logger.debug("Could not validate, re-fetching user and trying one more time")
|
||||||
# Fetch user anew and try one more time
|
# Fetch user anew and try one more time
|
||||||
with actor_id <- conn.params["actor"],
|
with actor_id <- conn.params["actor"],
|
||||||
{:ok, _user} <- ActivityPub.make_user_from_ap_id(actor_id),
|
{:ok, _user} <- ActivityPub.make_user_from_ap_id(actor_id),
|
||||||
|
|
|
@ -122,7 +122,7 @@ defmodule Pleroma.Web.WebFinger do
|
||||||
{:ok, data}
|
{:ok, data}
|
||||||
else
|
else
|
||||||
e ->
|
e ->
|
||||||
Logger.debug(fn -> "Couldn't finger #{account}." end)
|
Logger.debug(fn -> "Couldn't finger #{account}" end)
|
||||||
Logger.debug(fn -> inspect(e) end)
|
Logger.debug(fn -> inspect(e) end)
|
||||||
{:error, e}
|
{:error, e}
|
||||||
end
|
end
|
||||||
|
|
|
@ -98,7 +98,7 @@ defmodule Pleroma.Web.Websub do
|
||||||
|
|
||||||
{:ok, websub}
|
{:ok, websub}
|
||||||
else {:error, reason} ->
|
else {:error, reason} ->
|
||||||
Logger.debug("Couldn't create subscription.")
|
Logger.debug("Couldn't create subscription")
|
||||||
Logger.debug(inspect(reason))
|
Logger.debug(inspect(reason))
|
||||||
|
|
||||||
{:error, reason}
|
{:error, reason}
|
||||||
|
|
Loading…
Reference in a new issue