From f2e0e0c478c0da3a2d887c5a57c4d101daae6f9b Mon Sep 17 00:00:00 2001 From: Steve Cohen Date: Fri, 14 Oct 2022 13:52:11 -0700 Subject: [PATCH] Disable elixir-sense's logging in production Right now, this change is a no-op, but if and when this change https://github.com/elixir-lsp/elixir_sense/pull/165 lands, this will quiet elixir_sense's logging in the prod environment, which will prevent logspam in lsp buffers when elixir_sense encounters invalid code. --- apps/language_server/lib/language_server/cli.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/language_server/lib/language_server/cli.ex b/apps/language_server/lib/language_server/cli.ex index 748e1b39d..907c758ea 100644 --- a/apps/language_server/lib/language_server/cli.ex +++ b/apps/language_server/lib/language_server/cli.ex @@ -22,6 +22,7 @@ defmodule ElixirLS.LanguageServer.CLI do Launch.start_mix() + Application.put_env(:elixir_sense, :logging_enabled, Mix.env() != :prod) Build.set_compiler_options() start_language_server()