Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove json logger

Uku Taht22172074d8f2
diff --git a/config/runtime.exs b/config/runtime.exs
index 5ddcd0b94a..f1f489d14f 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -78,7 +78,6 @@ disable_registration = String.to_existing_atom(System.get_env("DISABLE_REGISTRAT
hcaptcha_sitekey = System.get_env("HCAPTCHA_SITEKEY")
hcaptcha_secret = System.get_env("HCAPTCHA_SECRET")
log_level = String.to_existing_atom(System.get_env("LOG_LEVEL", "warn"))
-log_format = System.get_env("LOG_FORMAT", "elixir")
is_selfhost = String.to_existing_atom(System.get_env("SELFHOST", "true"))
{site_limit, ""} = Integer.parse(System.get_env("SITE_LIMIT", "20"))
disable_cron = String.to_existing_atom(System.get_env("DISABLE_CRON", "false"))
@@ -280,22 +279,11 @@ if config_env() != :test && geolite2_country_db do
]
end
-logger_backends = %{
- "elixir" => [:console],
- "json" => [Ink]
-}
-
config :logger,
level: log_level,
- backends: logger_backends[log_format]
+ backends: [:console]
config :logger, Sentry.LoggerBackend,
capture_log_messages: true,
level: :error,
excluded_domains: []
-
-if log_format == "json" do
- config :logger, Ink,
- name: "plausible",
- level: log_level
-end
diff --git a/mix.exs b/mix.exs
index 932ad9369c..d8742f91e5 100644
--- a/mix.exs
+++ b/mix.exs
@@ -95,7 +95,6 @@ defmodule Plausible.MixProject do
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:kaffy, "~> 0.9.0"},
{:envy, "~> 1.1.1"},
- {:ink, "~> 1.0"},
{:phoenix_pagination, "~> 0.7.0"}
]
end