Skip to content

Commit 1ce3f1b

Browse files
committed
remove info messages from error log view in eclipse
1 parent e7e2015 commit 1ce3f1b

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/DelegatingStreamConnectionProvider.java

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public Object getInitializationOptions(URI rootUri) {
9999

100100
@Override
101101
public void start() throws IOException {
102-
BootLanguageServerPlugin.getDefault().getLog().info("DelegatingStreamConnectionProvider - Starting Boot LS");
103102
this.provider.start();
104103
IProxyService proxyService = PlatformUI.getWorkbench().getService(IProxyService.class);
105104
if (proxyService != null) {

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/Startup.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2023 VMware, Inc.
2+
* Copyright (c) 2022, 2025 VMware, Inc.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -37,13 +37,11 @@ public void earlyStartup() {
3737

3838
private synchronized void handleProjectsFound(Set<IJavaProject> springProjects) {
3939
if (!started && !springProjects.isEmpty()) {
40-
BootLanguageServerPlugin.getDefault().getLog().info("Starting Boot LS...");
4140
LanguageServerDefinition serverDefinition = LanguageServersRegistry.getInstance()
4241
.getDefinition(BootLanguageServerPlugin.BOOT_LS_DEFINITION_ID);
4342

4443
try {
4544
LanguageServiceAccessor.startLanguageServer(serverDefinition);
46-
BootLanguageServerPlugin.getDefault().getLog().info("Started Boot LS process");
4745
started = true;
4846
} catch (Throwable e1) {
4947
BootLanguageServerPlugin.getDefault().getLog().error("Failed to launch Boot Language Server", e1);

eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/STS4LanguageServerProcessStreamConnector.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2017, 2024 Pivotal, Inc.
2+
* Copyright (c) 2017, 2025 Pivotal, Inc.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -56,9 +56,10 @@ public STS4LanguageServerProcessStreamConnector(ServerInfo server) {
5656
@Override
5757
public void start() throws IOException {
5858
super.start();
59+
5960
Process process = LanguageServerProcessReaper.getProcess(this);
60-
LanguageServerCommonsActivator.getInstance().getLog().info("Started " + connectorId + " LS process " + process.pid());
6161
processReaper.addProcess(connectorId, process);
62+
6263
if (consoles!=null) {
6364
Console console = consoles.get();
6465
if (console!=null) {
@@ -117,8 +118,6 @@ protected final void initExecutableJarCommand(Path lsDir, String jarPrefix, List
117118
command.add(languageServerRoot.resolve(jarFile).toFile().toString());
118119

119120
setCommands(command);
120-
121-
LanguageServerCommonsActivator.getInstance().getLog().info("Command list starting LS: " + connectorId + "\nSTART:\n" + String.join("\n", command) + "\nEND");
122121
} catch (Throwable t) {
123122
LanguageServerCommonsActivator.logError(t, "Failed to assemble executable LS JAR launch command");
124123
}
@@ -191,8 +190,6 @@ protected final void initExplodedJarCommand(Path lsFolder, String mainClass, Str
191190
command.add(mainClass);
192191

193192
setCommands(command);
194-
195-
LanguageServerCommonsActivator.getInstance().getLog().info("Command list starting LS: " + connectorId + "\nSTART:\n" + String.join("\n", command) + "\nEND");
196193
}
197194
catch (Throwable t) {
198195
LanguageServerCommonsActivator.logError(t, "Failed to assemble exploded LS JAR launch command");
@@ -265,7 +262,6 @@ private InputStream getLanguageServerLog() {
265262
public void stop() {
266263
super.stop();
267264
Process process = LanguageServerProcessReaper.getProcess(this);
268-
LanguageServerCommonsActivator.getInstance().getLog().info("Stopped " + connectorId + " LS process " + process.pid());
269265
processReaper.removeProcess(process);
270266
}
271267

headless-services/jdt-ls-extension/org.springframework.tooling.jdt.ls.commons/src/org/springframework/tooling/jdt/ls/commons/BootProjectTracker.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2023 VMware, Inc.
2+
* Copyright (c) 2022, 2025 VMware, Inc.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -30,6 +30,7 @@
3030
public class BootProjectTracker {
3131

3232
private Logger logger;
33+
3334
private Set<IJavaProject> springProjects = new HashSet<>();
3435
private List<Consumer<Set<IJavaProject>>> listeners = Collections.synchronizedList(new ArrayList<>());
3536

@@ -40,7 +41,6 @@ public BootProjectTracker(Logger logger, Collection<Consumer<Set<IJavaProject>>>
4041

4142
@Override
4243
public void classpathChanged(IJavaProject jp) {
43-
logger.log("Classpath changed for project: " + jp.getElementName());
4444
processProject(jp);
4545
}
4646
});
@@ -57,12 +57,10 @@ public void classpathChanged(IJavaProject jp) {
5757
private void processProject(IJavaProject jp) {
5858
if (isSpringProject(jp)) {
5959
if (springProjects.add(jp)) {
60-
logger.log("Boot project ADDED: " + jp.getElementName());
6160
fireEvent();
6261
}
6362
} else {
6463
if (springProjects.remove(jp)) {
65-
logger.log("Boot project REMOVED: " + jp.getElementName());
6664
fireEvent();
6765
}
6866
}

0 commit comments

Comments
 (0)