From aee827df35dc371a3dd6ea8cad12a014fc8a1159 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 19:14:31 +0100 Subject: [PATCH] Add a logger for comment creation failure Signed-off-by: Thomas Citharel --- lib/service/activity_pub/utils.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/service/activity_pub/utils.ex b/lib/service/activity_pub/utils.ex index 9ce2e19a7..cd5c6df3c 100644 --- a/lib/service/activity_pub/utils.ex +++ b/lib/service/activity_pub/utils.ex @@ -150,6 +150,11 @@ defmodule Mobilizon.Service.ActivityPub.Utils do Logger.info("comment inserted") Logger.info(inspect(comm)) :ok + else + err -> + Logger.error("Error while inserting a remote comment inside database") + Logger.error(inspect err) + {:error, err} end end end