Add a new log file for token_balances fetching errors

pull/754/head
Igor Florian 6 years ago
parent 23d7416917
commit 99012b2c4c
  1. 5
      apps/indexer/config/dev.exs
  2. 5
      apps/indexer/config/prod.exs
  3. 5
      apps/indexer/config/test.exs
  4. 3
      config/config.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"

@ -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"

@ -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]

@ -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,

Loading…
Cancel
Save