From 18fbed0b905bb8d9eb5069db15af11e75e90b02c Mon Sep 17 00:00:00 2001 From: "aime.rolandi" Date: Tue, 28 Oct 2025 09:54:24 -0300 Subject: [PATCH] Loggeo proceso redirect --- lib/api_web/controllers/redirect.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api_web/controllers/redirect.ex b/lib/api_web/controllers/redirect.ex index 858edf6..d8f597d 100644 --- a/lib/api_web/controllers/redirect.ex +++ b/lib/api_web/controllers/redirect.ex @@ -102,15 +102,15 @@ defmodule ApiWeb.Redirect do case Req.post(url, json: %{"idstudy" => idstudy_str, "expiration" => expiration}) do {:ok, %Req.Response{status: 200, body: %{"hash" => hash}}} -> - Logger.info("hash obtenido: #{inspect(hash)}") + Logger.info("#{url} \n hash obtenido: #{inspect(hash)}") {:ok, hash} {:ok, %Req.Response{status: status, body: body}} -> - Logger.error("Error inesperado al obtener hash: #{status} - #{inspect(body)}") + Logger.error("#{url} \n Error inesperado al obtener hash: #{status} - #{inspect(body)}") {:error, {:unexpected_response, status, body}} {:error, reason} -> - Logger.error("Error de request al obtener hash: #{inspect(reason)}") + Logger.error("#{url} \n Error de request al obtener hash: #{inspect(reason)}") {:error, {:request_failed, reason}} end end