use Mix.Config config :logger, :indexer, level: :info, path: Path.absname("logs/prod/indexer.log") variant = if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do "parity" else System.get_env("ETHEREUM_JSONRPC_VARIANT") |> String.split(".") |> List.last() |> String.downcase() end # Import variant specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "prod/#{variant}.exs"