Skip to content

Commit

Permalink
Add LOG_COLORS :: boolean config
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Nov 28, 2024
1 parent 9495879 commit 0c8d8dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/sync-service/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ case log_level_config do
raise message
end

if !env!("LOG_COLORS", :boolean, true) do
config :logger, :default_formatter, colors: [enabled: false]
end

# Enable this to get **very noisy** but useful messages from BEAM about
# processes being started, stopped and crashes.
# https://www.erlang.org/doc/apps/sasl/error_logging#sasl-reports
Expand Down

0 comments on commit 0c8d8dc

Please sign in to comment.