mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
Remove cache reporting to logs
This commit is contained in:
parent
c7a9da75b4
commit
5c83ea77de
@ -35,8 +35,4 @@ config :plausible, Plausible.Repo,
|
|||||||
connect_timeout: 300_000,
|
connect_timeout: 300_000,
|
||||||
handshake_timeout: 300_000
|
handshake_timeout: 300_000
|
||||||
|
|
||||||
config :plausible, :user_agent_cache,
|
|
||||||
limit: 1000,
|
|
||||||
stats: false
|
|
||||||
|
|
||||||
import_config "#{config_env()}.exs"
|
import_config "#{config_env()}.exs"
|
||||||
|
@ -28,7 +28,6 @@ defmodule Plausible.Application do
|
|||||||
|
|
||||||
opts = [strategy: :one_for_one, name: Plausible.Supervisor]
|
opts = [strategy: :one_for_one, name: Plausible.Supervisor]
|
||||||
setup_sentry()
|
setup_sentry()
|
||||||
setup_cache_stats()
|
|
||||||
OpentelemetryPhoenix.setup()
|
OpentelemetryPhoenix.setup()
|
||||||
OpentelemetryEcto.setup([:plausible, :repo])
|
OpentelemetryEcto.setup([:plausible, :repo])
|
||||||
OpentelemetryEcto.setup([:plausible, :clickhouse_repo])
|
OpentelemetryEcto.setup([:plausible, :clickhouse_repo])
|
||||||
@ -60,14 +59,6 @@ defmodule Plausible.Application do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp setup_cache_stats() do
|
|
||||||
conf = Application.get_env(:plausible, :user_agent_cache)
|
|
||||||
|
|
||||||
if conf[:stats] do
|
|
||||||
:timer.apply_interval(1000 * 10, Plausible.Application, :report_cache_stats, [])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def setup_sentry() do
|
def setup_sentry() do
|
||||||
Logger.add_backend(Sentry.LoggerBackend)
|
Logger.add_backend(Sentry.LoggerBackend)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user