Log InternalTransaction.Fetcher errors as error

Why:

* Currently errors when importing internal transactions are being logged
with 'debug' level. Making them 'error' level would make sure we notice
them quicker and that they're prioritized accordingly.
* Issue link: n/a
pull/887/head
Sebastian Abondano 6 years ago
parent 73759eb819
commit f58bf1586f
  1. 4
      apps/indexer/lib/indexer/internal_transaction/fetcher.ex

@ -112,7 +112,7 @@ defmodule Indexer.InternalTransaction.Fetcher do
}) })
else else
{:error, step, reason, _changes_so_far} -> {:error, step, reason, _changes_so_far} ->
Logger.debug(fn -> Logger.error(fn ->
[ [
"failed to import internal transactions for ", "failed to import internal transactions for ",
to_string(length(transactions_params)), to_string(length(transactions_params)),
@ -128,7 +128,7 @@ defmodule Indexer.InternalTransaction.Fetcher do
end end
{:error, reason} -> {:error, reason} ->
Logger.debug(fn -> Logger.error(fn ->
"failed to fetch internal transactions for #{length(transactions_params)} transactions: #{inspect(reason)}" "failed to fetch internal transactions for #{length(transactions_params)} transactions: #{inspect(reason)}"
end) end)

Loading…
Cancel
Save