Merge pull request #1261 from poanetwork/import_id-transaction_id-logger-metadata

Include import_id and transaction_id in logger metadata
pull/1265/head
Luke Imhoff 6 years ago committed by GitHub
commit 85883011eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/block_scout_web/config/config.exs
  2. 2
      apps/ethereum_jsonrpc/config/config.exs
  3. 2
      apps/explorer/config/config.exs
  4. 2
      apps/indexer/config/config.exs
  5. 6
      config/config.exs

@ -50,7 +50,7 @@ config :logger, :block_scout_web,
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a,
block_number step count error_count shrunk import_id transaction_id)a,
metadata_filter: [application: :block_scout_web]
config :spandex_phoenix, tracer: BlockScoutWeb.Tracer

@ -19,7 +19,7 @@ config :logger, :ethereum_jsonrpc,
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a,
block_number step count error_count shrunk import_id transaction_id)a,
metadata_filter: [application: :ethereum_jsonrpc]
# Import environment specific config. This must remain at the bottom

@ -58,7 +58,7 @@ config :logger, :explorer,
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a,
block_number step count error_count shrunk import_id transaction_id)a,
metadata_filter: [application: :explorer]
config :spandex_ecto, SpandexEcto.EctoLogger,

@ -21,7 +21,7 @@ config :logger, :indexer,
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a,
block_number step count error_count shrunk import_id transaction_id)a,
metadata_filter: [application: :indexer]
# Import environment specific config. This must remain at the bottom

@ -34,14 +34,14 @@ config :logger, :console,
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a
block_number step count error_count shrunk import_id transaction_id)a
config :logger, :ecto,
# Use same format for all loggers, even though the level should only ever be `:error` for `:error` backend
format: "$dateT$time $metadata[$level] $message\n",
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a,
block_number step count error_count shrunk import_id transaction_id)a,
metadata_filter: [application: :ecto]
config :logger, :error,
@ -50,7 +50,7 @@ config :logger, :error,
level: :error,
metadata:
~w(application fetcher request_id first_block_number last_block_number missing_block_range_count missing_block_count
block_number step count error_count shrunk)a
block_number step count error_count shrunk import_id transaction_id)a
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.

Loading…
Cancel
Save