Add a logger for comment creation failure

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-11-07 19:14:31 +01:00
parent 023d802746
commit 911cbcdac5

View file

@ -150,6 +150,11 @@ defmodule Mobilizon.Service.ActivityPub.Utils do
Logger.info("comment inserted") Logger.info("comment inserted")
Logger.info(inspect(comm)) Logger.info(inspect(comm))
:ok :ok
else
err ->
Logger.error("Error while inserting a remote comment inside database")
Logger.error(inspect err)
{:error, err}
end end
end end
end end