revert to sentry logger backend (#4919)

This commit is contained in:
ruslandoga 2024-12-19 01:57:49 +07:00 committed by GitHub
parent 8a9bdf85fb
commit 15a38cc580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -29,6 +29,10 @@ log_level =
config :logger, level: log_level
config :logger, :default_formatter, metadata: [:request_id]
config :logger, Sentry.LoggerBackend,
capture_log_messages: true,
level: :error
case String.downcase(log_format) do
"standard" ->
config :logger, :default_formatter, format: "$time $metadata[$level] $message\n"

View File

@ -226,9 +226,7 @@ defmodule Plausible.Application do
end
def setup_sentry() do
:logger.add_handler(:sentry_handler, Sentry.LoggerHandler, %{
config: %{capture_log_messages: true, level: :error}
})
Logger.add_backend(Sentry.LoggerBackend)
:telemetry.attach_many(
"oban-errors",