diff --git a/config/runtime.exs b/config/runtime.exs index 5ddcd0b94a6d529530f32da8c2c891642f8ec541..f1f489d14f4987a4f4e77c3225573b0995b68936 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 932ad9369c7117c6cdae89da272afc3aa22c94d1..d8742f91e5375a0888d111bc0fc173170dd72f07 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