Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/853?notificati…
Browse files Browse the repository at this point in the history
…on_referrer_id=NT_kwDOAAHCdrE5NTAwNTI1MjY3OjExNTMxOA#issuecomment-1949258018
  • Loading branch information
mayel committed Feb 16, 2024
1 parent 2982987 commit 556a719
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions flavours/classic/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,20 @@ config :bonfire, Bonfire.Web.Endpoint,
secret_key_base: secret_key_base,
live_view: [signing_salt: signing_salt]

if System.get_env("SENTRY_DSN") do
IO.puts("NOTE: errors will be reported to Sentry.")
case System.get_env("SENTRY_DSN", "") do
"" ->
config :sentry,
modularity: :disabled

config :sentry,
dsn: System.get_env("SENTRY_DSN")
dsn ->
IO.puts("NOTE: errors will be reported to Sentry.")

if System.get_env("SENTRY_NAME") do
config :sentry, server_name: System.get_env("SENTRY_NAME")
end
else
config :sentry,
modularity: :disabled
config :sentry,
dsn: dsn

if System.get_env("SENTRY_NAME") do
config :sentry, server_name: System.get_env("SENTRY_NAME")
end
end

pool_size =
Expand Down

0 comments on commit 556a719

Please sign in to comment.