remove info messages from error log view in eclipse

This commit is contained in:
Martin Lippert
2025-04-08 12:40:56 +02:00
parent e7e2015ac4
commit 1ce3f1b90d
4 changed files with 6 additions and 15 deletions

View File

@@ -99,7 +99,6 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
@Override
public void start() throws IOException {
BootLanguageServerPlugin.getDefault().getLog().info("DelegatingStreamConnectionProvider - Starting Boot LS");
this.provider.start();
IProxyService proxyService = PlatformUI.getWorkbench().getService(IProxyService.class);
if (proxyService != null) {

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2022, 2023 VMware, Inc.
* Copyright (c) 2022, 2025 VMware, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -37,13 +37,11 @@ public class Startup implements IStartup {
private synchronized void handleProjectsFound(Set<IJavaProject> springProjects) {
if (!started && !springProjects.isEmpty()) {
BootLanguageServerPlugin.getDefault().getLog().info("Starting Boot LS...");
LanguageServerDefinition serverDefinition = LanguageServersRegistry.getInstance()
.getDefinition(BootLanguageServerPlugin.BOOT_LS_DEFINITION_ID);
try {
LanguageServiceAccessor.startLanguageServer(serverDefinition);
BootLanguageServerPlugin.getDefault().getLog().info("Started Boot LS process");
started = true;
} catch (Throwable e1) {
BootLanguageServerPlugin.getDefault().getLog().error("Failed to launch Boot Language Server", e1);

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017, 2024 Pivotal, Inc.
* Copyright (c) 2017, 2025 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -56,9 +56,10 @@ public abstract class STS4LanguageServerProcessStreamConnector extends ProcessSt
@Override
public void start() throws IOException {
super.start();
Process process = LanguageServerProcessReaper.getProcess(this);
LanguageServerCommonsActivator.getInstance().getLog().info("Started " + connectorId + " LS process " + process.pid());
processReaper.addProcess(connectorId, process);
if (consoles!=null) {
Console console = consoles.get();
if (console!=null) {
@@ -117,8 +118,6 @@ public abstract class STS4LanguageServerProcessStreamConnector extends ProcessSt
command.add(languageServerRoot.resolve(jarFile).toFile().toString());
setCommands(command);
LanguageServerCommonsActivator.getInstance().getLog().info("Command list starting LS: " + connectorId + "\nSTART:\n" + String.join("\n", command) + "\nEND");
} catch (Throwable t) {
LanguageServerCommonsActivator.logError(t, "Failed to assemble executable LS JAR launch command");
}
@@ -191,8 +190,6 @@ public abstract class STS4LanguageServerProcessStreamConnector extends ProcessSt
command.add(mainClass);
setCommands(command);
LanguageServerCommonsActivator.getInstance().getLog().info("Command list starting LS: " + connectorId + "\nSTART:\n" + String.join("\n", command) + "\nEND");
}
catch (Throwable t) {
LanguageServerCommonsActivator.logError(t, "Failed to assemble exploded LS JAR launch command");
@@ -265,7 +262,6 @@ public abstract class STS4LanguageServerProcessStreamConnector extends ProcessSt
public void stop() {
super.stop();
Process process = LanguageServerProcessReaper.getProcess(this);
LanguageServerCommonsActivator.getInstance().getLog().info("Stopped " + connectorId + " LS process " + process.pid());
processReaper.removeProcess(process);
}