From: Mark Felder Date: Wed, 20 Nov 2019 17:18:42 +0000 (-0600) Subject: Console backend's log format should be prefixed and suffixed with newlines. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c65190c799b6217dca36f9fe4768024b50b725a8;p=akkoma Console backend's log format should be prefixed and suffixed with newlines. This is how upstream does it by default. --- diff --git a/config/config.exs b/config/config.exs index 9ac78c589..1e36d3314 100644 --- a/config/config.exs +++ b/config/config.exs @@ -181,7 +181,7 @@ config :pleroma, Pleroma.Web.Endpoint, # Configures Elixir's Logger config :logger, :console, level: :debug, - format: "$time $metadata[$level] $message\n", + format: "\n$time $metadata[$level] $message\n", metadata: [:request_id] config :logger, :ex_syslogger, diff --git a/config/test.exs b/config/test.exs index f8188b9e4..07e70dd4d 100644 --- a/config/test.exs +++ b/config/test.exs @@ -17,7 +17,7 @@ config :pleroma, Pleroma.Captcha, # Print only warnings and errors during test config :logger, level: :warn, - format: "[$level] $message" + format: "\n[$level] $message\n" config :pleroma, :auth, oauth_consumer_strategies: []