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
|
||||
res
|
||||
else
|
||||
{_, _r} = error ->
|
||||
# Logger.warn(r)
|
||||
error
|
||||
error ->
|
||||
error = error
|
||||
|
||||
with {:error, message} <- error do
|
||||
Logger.warn(message)
|
||||
end
|
||||
|
||||
{_, _r} = error
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue