Skip to content

Commit

Permalink
fix: update config metadata to include :project and :external_id 馃槃
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jul 11, 2022
1 parent df3d19b commit 85ae2d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ config :phoenix_swagger, json_library: Jason
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
metadata: [:request_id, :project, :external_id]

# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ config :realtime, RealtimeWeb.Endpoint,
# Do not include metadata nor timestamps in development logs
config :logger, :console,
format: "$time [$level] $message $metadata\n",
metadata: [:error_code, :file, :pid]
metadata: [:error_code, :file, :pid, :project, :external_id]

# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
Expand Down
2 changes: 1 addition & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Config
# Do not print debug messages in production
config :logger, :warning,
format: "$time [$level] $message $metadata\n",
metadata: [:error_code, :file, :pid]
metadata: [:error_code, :file, :pid, :project, :external_id]

# ## SSL Support
#
Expand Down

0 comments on commit 85ae2d6

Please sign in to comment.