From 5c83ea77de3f064b5aa36acb1902af9d5efb0834 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 12 Aug 2022 11:05:47 +0300 Subject: [PATCH] Remove cache reporting to logs --- config/config.exs | 4 ---- lib/plausible/application.ex | 9 --------- 2 files changed, 13 deletions(-) diff --git a/config/config.exs b/config/config.exs index 62c3134b8..055bfc543 100644 --- a/config/config.exs +++ b/config/config.exs @@ -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" diff --git a/lib/plausible/application.ex b/lib/plausible/application.ex index 230459775..df2648165 100644 --- a/lib/plausible/application.ex +++ b/lib/plausible/application.ex @@ -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)