Merge pull request #887 from poanetwork/sa-internal-transaction-logged-errors-as-errors

Log InternalTransaction.Fetcher errors as error
pull/912/head
Sebastian Abondano 6 years ago committed by GitHub
commit 369e00603e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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