From 22172074d8f265f171ed193e313b24e65c8c9331 Mon Sep 17 00:00:00 2001 From: Uku Taht <uku.taht@gmail.com> Date: Mon, 24 May 2021 11:07:19 +0300 Subject: [PATCH] Remove json logger --- config/runtime.exs | 14 +------------- mix.exs | 1 - 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 5ddcd0b9..f1f489d1 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 932ad936..d8742f91 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 -- GitLab