Add error details in error logging in Activity Update handler

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-06 11:33:09 +01:00
parent 83755c4746
commit de8433cdbb
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -36,8 +36,7 @@ defmodule Mobilizon.Federation.ActivityPub.Actions.Update do
{:ok, activity, entity} {:ok, activity, entity}
{:error, err} -> {:error, err} ->
Logger.error("Something went wrong while creating an activity") Logger.error("Something went wrong while creating an activity", err: inspect(err))
Logger.debug(inspect(err))
{:error, err} {:error, err}
end end
end end