bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

Provide a way to disable logging

Open akurtakov opened this issue 5 years ago • 2 comments

I haven't found a way to disable logging for the server.

akurtakov avatar Nov 30 '20 14:11 akurtakov

I haven't found a way to disable logging for the server.

Which logging would you like to disable?

skovhus avatar Nov 30 '20 14:11 skovhus

All of:

[Log] Initialized server v. 1.16.1 for file:///~~~~~~~~~~
[Log] Analyzing files matching glob "**/*@(.sh|.inc|.bash|.command)" inside ~~~~~~~~~
[Log] Glob resolved with 1 files after 0.055 seconds
[Log] Analyzing file:///~~~~~~~~~~~.sh
[Log] Analyzer finished after 0.068 seconds
[Log] onDocumentHighlight 11:13 word=null
[Log] onDocumentHighlight 11:13 word=null
[Log] onDocumentSymbol
[Log] onDocumentHighlight 18:28 word="MISSING_ENVS"
[Log] onHover 11:12 word=null
[Log] onDocumentHighlight 11:13 word=null
[Log] onHover 8:13 word=null
[Log] onDocumentHighlight 8:13 word=null
[Log] onHover 16:4 word="eval"
[Log] onDocumentHighlight 16:2 word="eval"
[Log] onHover 9:1 word=null

akurtakov avatar Nov 30 '20 15:11 akurtakov

@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".

skovhus avatar Dec 09 '22 12:12 skovhus

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.

akurtakov avatar Dec 09 '22 15:12 akurtakov

Eclipse LSP4E defaults to print everything to the console

That’s odd. Can you paste a screenshot?

skovhus avatar Dec 09 '22 16:12 skovhus

Here it is image

akurtakov avatar Dec 09 '22 16:12 akurtakov

@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.

skovhus avatar Jan 24 '23 21:01 skovhus