Debug log the output of an Create Event error
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c15123e5ea
commit
8250d34597
@ -114,8 +114,12 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
|
|||||||
Actions.Create.create(:event, object_data, false) do
|
Actions.Create.create(:event, object_data, false) do
|
||||||
{:ok, activity, event}
|
{:ok, activity, event}
|
||||||
else
|
else
|
||||||
{:existing_event, %Event{} = event} -> {:ok, nil, event}
|
{:existing_event, %Event{} = event} ->
|
||||||
_ -> :error
|
{:ok, nil, event}
|
||||||
|
|
||||||
|
err ->
|
||||||
|
Logger.debug(inspect(err))
|
||||||
|
:error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user