-
Notifications
You must be signed in to change notification settings - Fork 132
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
Provide a way to disable logging #273
Comments
Which logging would you like to disable? |
All of:
|
This adds a `verbose` option to LS configuration. The default value is `verbose=true` enables the messages to be logged using `connection.console.log(message)`, while `verbose=false` disables any messages to be logged. This doesn't change the logging of any other types, f.i. when `connection.console.warn(message)` is used the message will be sent to console regardless of value of `verbose` option. Signed-off-by: Victor Rubezhny <[email protected]>
@vrubezhny @akurtakov I'm trying to prioritize solving this. But I'm curious how common is it that you are actually annoyed by these logs? For the VS Code client you never see the logs unless you specifically go to "output -> Bash IDE". |
It would be nice to have as Eclipse LSP4E defaults to print everything to the console when developing so there is ton of lsp messages but it's not end user visible thing. |
That’s odd. Can you paste a screenshot? |
@akurtakov some weeks ago a new version of the server was released that supports configuring logging. See more documentation here: https://github.com/bash-lsp/bash-language-server#logging Let me know if this works for you. You cannot currently disable all logging, but you can set the logging level to error, which I hope solves the problem for you. |
I haven't found a way to disable logging for the server.
The text was updated successfully, but these errors were encountered: