From 8250d34597b795c606719cf4cdd018dd12b52211 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 10 Nov 2021 16:41:41 +0100 Subject: [PATCH] Debug log the output of an Create Event error Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/transmogrifier.ex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/federation/activity_pub/transmogrifier.ex b/lib/federation/activity_pub/transmogrifier.ex index e0c28c5d2..41c863d08 100644 --- a/lib/federation/activity_pub/transmogrifier.ex +++ b/lib/federation/activity_pub/transmogrifier.ex @@ -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