Skip to content

Commit

Permalink
Merge pull request #1006 from eyra/hotfix/6.1
Browse files Browse the repository at this point in the history
Removed logging donation data
  • Loading branch information
mellelieuwes authored Nov 19, 2024
2 parents d33f954 + f5ef42c commit c9f320b
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 19 deletions.
8 changes: 0 additions & 8 deletions core/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ if config_env() == :prod do
access_key: System.get_env("UNSPLASH_ACCESS_KEY"),
app_name: System.get_env("UNSPLASH_APP_NAME")

if sentry_dsn = System.get_env("SENTRY_DSN") do
config :sentry,
dsn: sentry_dsn,
environment_name: app_domain,
enable_source_code_context: true,
root_source_code_paths: [File.cwd!()]
end

config :core, :storage,
services:
System.get_env("STORAGE_SERVICES", "builtin, yoda")
Expand Down
2 changes: 0 additions & 2 deletions core/frameworks/fabric/live_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ defmodule Fabric.LiveView do
defmacro __using__(layout) do
quote do
use Phoenix.LiveView, layout: {unquote(layout), :live}
on_mount(Sentry.LiveViewHook)
unquote(helpers())
end
end

defmacro __using__() do
quote do
use Phoenix.LiveView
on_mount(Sentry.LiveViewHook)
unquote(helpers())
end
end
Expand Down
4 changes: 0 additions & 4 deletions core/lib/core/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ defmodule Core.Application do
use Application

def start(_type, _args) do
:logger.add_handler(:sentry_handler, Sentry.LoggerHandler, %{
config: %{capture_log_messages: true, level: :error}
})

topologies = [
example: [
strategy: Cluster.Strategy.Epmd,
Expand Down
2 changes: 0 additions & 2 deletions core/lib/core_web/endpoint.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
defmodule CoreWeb.Endpoint do
use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :core

require Systems.Content.Plug
Expand Down Expand Up @@ -70,7 +69,6 @@ defmodule CoreWeb.Endpoint do
json_decoder: Phoenix.json_library()
)

plug(Sentry.PlugContext)
plug(Plug.MethodOverride)
plug(Plug.Head)
plug(Plug.Session, @session_options)
Expand Down
2 changes: 0 additions & 2 deletions core/systems/assignment/crew_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ defmodule Systems.Assignment.CrewPage do

@impl true
def handle_event(name, event, socket) do
Logger.warn("forwarding to flow: name=#{name}, event=#{inspect(event)}")

{
:noreply,
socket |> send_event(:flow, name, event)
Expand Down
2 changes: 1 addition & 1 deletion core/systems/storage/delivery.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Systems.Storage.Delivery do
end

def deliver(backend, endpoint, data, meta_data) do
Logger.notice("[Storage.Delivery] deliver #{byte_size(data)} bytes",
Logger.debug("[Storage.Delivery] delivery started",
ansi_color: :light_magenta
)

Expand Down

0 comments on commit c9f320b

Please sign in to comment.