diff options
| author | lain <lain@soykaf.club> | 2019-11-21 15:04:19 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-11-21 15:04:19 +0000 |
| commit | 19b727bf8f54fb29b1a8258640ac59982810a351 (patch) | |
| tree | 9198385422cc080bc8bb6623ed3071049cd8d2c9 /config | |
| parent | 8feb5dcb4240e92bf20cdc6896877cfa9551b61c (diff) | |
| parent | 320690f7a5bf1622e25114b6ad4c0b0c5a252748 (diff) | |
| download | pleroma-19b727bf8f54fb29b1a8258640ac59982810a351.tar.gz pleroma-19b727bf8f54fb29b1a8258640ac59982810a351.zip | |
Merge branch 'fix/mix-task-logging' into 'develop'
Allow mix tasks to always run with debug logging
See merge request pleroma/pleroma!1997
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.exs | 3 | ||||
| -rw-r--r-- | config/prod.exs | 2 | ||||
| -rw-r--r-- | config/test.exs | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/config/config.exs b/config/config.exs index bf2b3f6e2..1e36d3314 100644 --- a/config/config.exs +++ b/config/config.exs @@ -180,7 +180,8 @@ config :pleroma, Pleroma.Web.Endpoint, # Configures Elixir's Logger config :logger, :console, - format: "$time $metadata[$level] $message\n", + level: :debug, + format: "\n$time $metadata[$level] $message\n", metadata: [:request_id] config :logger, :ex_syslogger, diff --git a/config/prod.exs b/config/prod.exs index 9c205cbd2..301d2b9cb 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -20,7 +20,7 @@ config :pleroma, Pleroma.Web.Endpoint, config :phoenix, serve_endpoints: true # Do not print debug messages in production -config :logger, level: :warn +config :logger, :console, level: :warn # ## SSL Support # diff --git a/config/test.exs b/config/test.exs index da2778aa7..9b737d4d7 100644 --- a/config/test.exs +++ b/config/test.exs @@ -15,7 +15,9 @@ config :pleroma, Pleroma.Captcha, method: Pleroma.Captcha.Mock # Print only warnings and errors during test -config :logger, level: :warn +config :logger, :console, + level: :warn, + format: "\n[$level] $message\n" config :pleroma, :auth, oauth_consumer_strategies: [] |
