Add a logger for comment creation failure
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
023d802746
commit
911cbcdac5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user