From c68c0c2120094458cddeb5b702757737f357d578 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Nov 2022 17:56:45 +0100 Subject: [PATCH] Add context to error when removing an upload file following actor suspension Signed-off-by: Thomas Citharel --- lib/service/actor_suspension.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/service/actor_suspension.ex b/lib/service/actor_suspension.ex index 26ccd9b7..35b64069 100644 --- a/lib/service/actor_suspension.ex +++ b/lib/service/actor_suspension.ex @@ -279,7 +279,12 @@ defmodule Mobilizon.Service.ActorSuspension do {:ok, actor} {:error, error} -> - Logger.error("Error while removing an upload file") + Logger.error("Error while removing an upload file", + error: inspect(error), + actor: Actor.preferred_username_and_domain(actor), + file_url: url + ) + Logger.debug(inspect(error)) {:ok, actor}