Skip to content

Commit

Permalink
Disable elixir-sense's logging in production (#748)
Browse files Browse the repository at this point in the history
Right now, this change is a no-op, but if and when this change
elixir-lsp/elixir_sense#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.
  • Loading branch information
scohen committed Nov 6, 2022
1 parent 3145fef commit edb2e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/language_server/lib/language_server/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit edb2e4d

Please sign in to comment.