Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honoring the RUST_LOG environment variable level when launching the language servers, and more broadly #16293

Closed
1 task done
florinpatrascu opened this issue Aug 15, 2024 · 0 comments · Fixed by #17075
Closed
1 task done
Labels
enhancement [core label] language server An umbrella label for all language servers logging Feedback for logs, debug output, etc rust Rust programming language support setting Feedback for preferences, configuration, etc

Comments

@florinpatrascu
Copy link

Check for existing issues

  • Completed

Describe the feature

When the editor (client in this case) does not handle a telemetry event, the Zed app log may become flooded with messages like the following:

2024-08-15T14:17:20.621663Z [INFO] Language server with id <NN> sent unhandled notification telemetry/event:

{
  "measurements": {
    "elixir_ls.lsp_request_time": 0
  },
  "name": "lsp_request",
  "properties": {
    "elixir_ls.elixir_release": "1.14",
    "elixir_ls.elixir_version": "1.14.5",
    "elixir_ls.erts_version": "13.2.2.3",
    "elixir_ls.lsp_command": "textDocument_codeAction",
    "elixir_ls.mix_env": "test",
    "elixir_ls.mix_target": "host",
    "elixir_ls.otp_release": "25"
  }
}

Even if I start Zed with RUST_LOG=error zed ., logs continue to accumulate with INFO messages (~) from crates/lsp/src/lsp.rs:304. Is there a way to suppress these messages?

Thank you

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@Moshyfawn Moshyfawn added setting Feedback for preferences, configuration, etc logging Feedback for logs, debug output, etc and removed triage labels Aug 15, 2024
@notpeter notpeter added rust Rust programming language support language server An umbrella label for all language servers and removed admin read labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] language server An umbrella label for all language servers logging Feedback for logs, debug output, etc rust Rust programming language support setting Feedback for preferences, configuration, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants