diff --git a/apps/indexer/config/dev.exs b/apps/indexer/config/dev.exs index 902d015fde..2f445c38dc 100644 --- a/apps/indexer/config/dev.exs +++ b/apps/indexer/config/dev.exs @@ -4,6 +4,11 @@ config :logger, :indexer, level: :debug, path: Path.absname("logs/dev/indexer.log") +config :logger, :indexer_token_balances, + level: :debug, + path: Path.absname("logs/dev/indexer/token_balances/error.log"), + metadata_filter: [fetcher: :token_balances] + variant = if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do "parity" diff --git a/apps/indexer/config/prod.exs b/apps/indexer/config/prod.exs index a71c7648dd..375eed8814 100644 --- a/apps/indexer/config/prod.exs +++ b/apps/indexer/config/prod.exs @@ -4,6 +4,11 @@ config :logger, :indexer, level: :info, path: Path.absname("logs/prod/indexer.log") +config :logger, :indexer_token_balances, + level: :debug, + path: Path.absname("logs/prod/indexer/token_balances/error.log"), + metadata_filter: [fetcher: :token_balances] + variant = if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do "parity" diff --git a/apps/indexer/config/test.exs b/apps/indexer/config/test.exs index be30aae684..e1ba98f859 100644 --- a/apps/indexer/config/test.exs +++ b/apps/indexer/config/test.exs @@ -3,3 +3,8 @@ use Mix.Config config :logger, :indexer, level: :warn, path: Path.absname("logs/test/indexer.log") + +config :logger, :indexer_token_balances, + level: :debug, + path: Path.absname("logs/test/indexer/token_balances/error.log"), + metadata_filter: [fetcher: :token_balances] diff --git a/config/config.exs b/config/config.exs index 50400ef963..a8f9c191e0 100644 --- a/config/config.exs +++ b/config/config.exs @@ -24,7 +24,8 @@ config :logger, # only :explorer, but all levels {LoggerFileBackend, :explorer}, # only :indexer, but all levels - {LoggerFileBackend, :indexer} + {LoggerFileBackend, :indexer}, + {LoggerFileBackend, :indexer_token_balances} ] config :logger, :console,