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 c1effa18ad
commit aee827df35

View File

@ -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