Filter excessive logging of artifact download from m2e in "debug mode" #3011
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #2420, #2785 for some background on what the problem is.
When opening a Maven project whose contents have never been downloaded to the local repository (eg. a clean
$HOME/.m2/repository
), and with the system propertyjdt.ls.debug=true
enabled (most commonly injava.jdt.ls.vmargs
via.-D
), the client and server logs will be overwhelmed with many messages of the form :client log
server log
This breaks the import as no progress can be made. Luckily this is mostly a problem for those developing as we're more likely to be using
jdt.ls.debug
.Looking at the logger's that are generating these, I found
org.apache.http.wire
generating a lot of messages. After disabling it I was able to get the project to import and noticed this distribution for logging messages :I think it's safe to disable
org.apache.http
entirely (and I've also modified an existing one).