From f58bf1586fec9bb43e7cf118849384b8049e65de Mon Sep 17 00:00:00 2001 From: Sebastian Abondano Date: Tue, 9 Oct 2018 10:29:51 -0400 Subject: [PATCH] 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 --- apps/indexer/lib/indexer/internal_transaction/fetcher.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/indexer/lib/indexer/internal_transaction/fetcher.ex b/apps/indexer/lib/indexer/internal_transaction/fetcher.ex index 84fa334b96..3a99dc7603 100644 --- a/apps/indexer/lib/indexer/internal_transaction/fetcher.ex +++ b/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)