1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 00:14:48 +00:00

Debug log the output of an Create Event error

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-10 16:41:41 +01:00
parent c15123e5ea
commit 8250d34597
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -114,8 +114,12 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
Actions.Create.create(:event, object_data, false) do
{:ok, activity, event}
else
{:existing_event, %Event{} = event} -> {:ok, nil, event}
_ -> :error
{:existing_event, %Event{} = event} ->
{:ok, nil, event}
err ->
Logger.debug(inspect(err))
:error
end
end