Allow Ecto loggers to log to the application-specific log **file**, `log/<Mix.env>/ecto.log` but raise `:console`'s level to `:info`, so that Ecto output does not flood `iex` and make it unusable.pull/608/head
parent
c032ea2291
commit
fdd1090c45
@ -1,3 +1,8 @@ |
||||
use Mix.Config |
||||
|
||||
config :logger, :console, level: :debug |
||||
# DO NOT make it `:debug` or all Ecto logs will be shown for indexer |
||||
config :logger, :console, level: :info |
||||
|
||||
config :logger, :ecto, |
||||
level: :debug, |
||||
path: "logs/dev/ecto.log" |
||||
|
@ -1,4 +1,9 @@ |
||||
use Mix.Config |
||||
|
||||
# Do not print debug messages in production |
||||
|
||||
config :logger, :console, level: :info |
||||
|
||||
config :logger, :ecto, |
||||
level: :info, |
||||
path: "logs/prod/ecto.log" |
||||
|
@ -1,8 +1,13 @@ |
||||
use Mix.Config |
||||
|
||||
# Print only warnings and errors during test |
||||
|
||||
config :logger, :console, level: :warn |
||||
|
||||
config :logger, :ecto, |
||||
level: :warn, |
||||
path: "logs/test/ecto.log" |
||||
|
||||
config :explorer, Explorer.ExchangeRates, |
||||
source: Explorer.ExchangeRates.Source.NoOpSource, |
||||
store: :none |
||||
|
Loading…
Reference in new issue