You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm basically running off of the 0.23.0 version..(though hacking a bit so I have a bit from main).
I'm relying on the 'log.level' sysprop to initialize the special FileHandler set up off of the root Logger in LogHelper.
However this setup is getting overwritten when a DidChangeConfigurationParams request comes into the server.
The root logger gets re-initialized, all handlers removed, and the FileHandler does not get set up correctly the 2nd time.
In the debugger I see this stack (line numbers might not align precisely because I've been hacking a bit):
It seems that maybe the XMLLanguageServer.updateSettings() should only conditionally call the LogHelper.initializeRootLogger() routine. Maybe it should look if an initialize of the root logger has already been done, and/or if the DidChangeConfigurationParams payload contains anything log-related?
In my case the DidChangeConfigurationParams payload is this:
{"xml":{"maven":{}}}
Let me stop and make sure there's no issue with my understanding of the problem before trying to suggest a fix. Thanks.
The text was updated successfully, but these errors were encountered:
I don't master this logger code, but I think it was done like this to give the capability to remove logs configured when user change setting sand it removes logs from settings. @fbricon could you help us about that please?
I'm basically running off of the 0.23.0 version..(though hacking a bit so I have a bit from main).
I'm relying on the 'log.level' sysprop to initialize the special FileHandler set up off of the root Logger in LogHelper.
However this setup is getting overwritten when a DidChangeConfigurationParams request comes into the server.
The root logger gets re-initialized, all handlers removed, and the FileHandler does not get set up correctly the 2nd time.
In the debugger I see this stack (line numbers might not align precisely because I've been hacking a bit):
Looking at the code in:
lemminx/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/XMLLanguageServer.java
Lines 159 to 180 in 5cf4a9c
It seems that maybe the
XMLLanguageServer.updateSettings()
should only conditionally call theLogHelper.initializeRootLogger()
routine. Maybe it should look if an initialize of the root logger has already been done, and/or if the DidChangeConfigurationParams payload contains anything log-related?In my case the DidChangeConfigurationParams payload is this:
Let me stop and make sure there's no issue with my understanding of the problem before trying to suggest a fix. Thanks.
The text was updated successfully, but these errors were encountered: