Better error messages from reactor

This commit is contained in:
Kris De Volder
2020-03-11 14:14:22 -07:00
parent 13e2dcfca3
commit ac169b455a

View File

@@ -62,6 +62,8 @@ import org.springframework.ide.vscode.languageserver.starter.LanguageServerAutoC
import org.springframework.ide.vscode.languageserver.starter.LanguageServerRunnerAutoConf;
import org.yaml.snakeyaml.Yaml;
import reactor.core.publisher.Hooks;
@SpringBootConfiguration(proxyBeanMethods = false)
@ImportAutoConfiguration({
// During development you can uncomment the below so that boot dash can detect started state properly:
@@ -78,6 +80,7 @@ public class BootLanguagServerBootApp {
private static final String SERVER_NAME = "boot-language-server";
public static void main(String[] args) throws Exception {
Hooks.onOperatorDebug();
System.setProperty(LanguageServerRunner.SYSPROP_LANGUAGESERVER_NAME, SERVER_NAME); //makes it easy to recognize language server processes - and set this as early as possible
LogRedirect.bootRedirectToFile(SERVER_NAME); //TODO: use boot (or logback realy) to configure logging instead.