Remove cache reporting to logs

This commit is contained in:
Uku Taht 2022-08-12 11:05:47 +03:00
parent c7a9da75b4
commit 5c83ea77de
2 changed files with 0 additions and 13 deletions

View File

@ -35,8 +35,4 @@ config :plausible, Plausible.Repo,
connect_timeout: 300_000,
handshake_timeout: 300_000
config :plausible, :user_agent_cache,
limit: 1000,
stats: false
import_config "#{config_env()}.exs"

View File

@ -28,7 +28,6 @@ defmodule Plausible.Application do
opts = [strategy: :one_for_one, name: Plausible.Supervisor]
setup_sentry()
setup_cache_stats()
OpentelemetryPhoenix.setup()
OpentelemetryEcto.setup([:plausible, :repo])
OpentelemetryEcto.setup([:plausible, :clickhouse_repo])
@ -60,14 +59,6 @@ defmodule Plausible.Application do
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
Logger.add_backend(Sentry.LoggerBackend)