mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-30 21:41:25 +00:00
Add a logger for comment creation failure
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
023d802746
commit
911cbcdac5
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue