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}
{:error, err} ->
Logger.error("Something went wrong while creating an activity")
Logger.debug(inspect(err))
Logger.error("Something went wrong while creating an activity", err: inspect(err))
{:error, err}
end
end