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

Loading…
Cancel
Save