Handle failed fetches a bit better #743

Merged
floatingghost merged 34 commits from failed-fetch-processing into develop 2024-04-19 11:25:14 +00:00
Showing only changes of commit 825ae46bfa - Show all commits

View file

@ -158,15 +158,15 @@ def fetch_object_from_id(id, options \\ []) do
{:error, "URI Scheme Invalid"}
{:containment, e} ->
Logger.info("Error while fetching #{id}: Object containment failed. #{inspect(e)}")
Logger.error("Error while fetching #{id}: Object containment failed. #{inspect(e)}")
{:error, e}
{:transmogrifier, {:error, {:reject, e}}} ->
Logger.info("Rejected #{id} while fetching: #{inspect(e)}")
Logger.error("Rejected #{id} while fetching: #{inspect(e)}")
{:reject, e}
{:transmogrifier, {:reject, e}} ->
Logger.info("Rejected #{id} while fetching: #{inspect(e)}")
Logger.error("Rejected #{id} while fetching: #{inspect(e)}")
{:reject, e}
{:transmogrifier, _} = e ->