HttpRequestMock: Log mock errors as warnings
This commit is contained in:
parent
90986667ce
commit
18668447d2
@ -17,9 +17,14 @@ def request(
|
|||||||
with {:ok, res} <- apply(__MODULE__, method, [url, query, body, headers]) do
|
with {:ok, res} <- apply(__MODULE__, method, [url, query, body, headers]) do
|
||||||
res
|
res
|
||||||
else
|
else
|
||||||
{_, _r} = error ->
|
error ->
|
||||||
# Logger.warn(r)
|
error = error
|
||||||
error
|
|
||||||
|
with {:error, message} <- error do
|
||||||
|
Logger.warn(message)
|
||||||
|
end
|
||||||
|
|
||||||
|
{_, _r} = error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user