Elixir 1.19: Disable logging with colors in test environment

Can break some tests capture logs and then match on an expected text.
Since color codes end up being in the captured log.
This commit is contained in:
Phantasm 2026-01-13 00:36:15 +01:00 • committed by Phantasm
commit 6744a86fe3

View file

@ -17,7 +17,11 @@ config :pleroma, Pleroma.Captcha,
# Print only warnings and errors during test # Print only warnings and errors during test
config :logger, :default_handler, level: :warning config :logger, :default_handler, level: :warning
config :logger, :default_formatter, format: "\n[$level] $message\n" config :logger, :default_formatter,
format: "\n[$level] $message\n",
colors: [
enabled: false
]
config :pleroma, :auth, oauth_consumer_strategies: [] config :pleroma, :auth, oauth_consumer_strategies: []