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
1 changed files with 6 additions and 2 deletions

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