Skip to content

Commit

Permalink
Changed log4j to slf4j
Browse files Browse the repository at this point in the history
  • Loading branch information
l3-g5 committed Nov 10, 2022
1 parent 0bb5039 commit 11b9c2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions org.eclipse.epp.mpc.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Require-Bundle: org.eclipse.osgi;bundle-version="3.6.0",
org.eclipse.ui;bundle-version="3.6.0",
org.eclipse.swtbot.eclipse.finder;bundle-version="2.2.1",
org.eclipse.swtbot.junit4_x;bundle-version="2.2.1",
org.apache.log4j;bundle-version="1.2.15",
org.eclipse.equinox.p2.ui.discovery;bundle-version="1.0.0",
org.hamcrest.core;bundle-version="1.3.0",
org.hamcrest.library;bundle-version="1.3.0",
Expand All @@ -26,7 +25,8 @@ Require-Bundle: org.eclipse.osgi;bundle-version="3.6.0",
org.eclipse.userstorage;bundle-version="[1.1.0,2.0.0)",
org.mockito;bundle-version="1.9.5",
org.apache.httpcomponents.client5.httpclient5,
org.apache.httpcomponents.httpclient
org.apache.httpcomponents.httpclient,
org.slf4j.api;bundle-version="1.7.30"
Import-Package: org.apache.hc.client5.http.auth;version="[5.1.0,5.2.0)",
org.apache.hc.client5.http.classic;version="[5.1.0,5.2.0)",
org.apache.hc.client5.http.classic.methods;version="[5.1.0,5.2.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import java.util.Set;
import java.util.concurrent.TimeUnit;

import org.apache.log4j.Logger;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.epp.internal.mpc.core.model.Node;
Expand Down Expand Up @@ -102,6 +101,8 @@
import org.junit.rules.TestRule;
import org.junit.runner.notification.Failure;
import org.junit.runners.model.Statement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractMarketplaceWizardBotTest {

Expand Down Expand Up @@ -132,7 +133,7 @@ private static INode testNode(String id, String url, String name) {

private static long PROGRESS_TIMEOUT = Long.getLong("org.eclipse.epp.mpc.tests.progress.timeout", 30000);

private static final Logger logger = Logger.getLogger(AbstractMarketplaceWizardBotTest.class);
private static final Logger logger = LoggerFactory.getLogger(AbstractMarketplaceWizardBotTest.class);

private static boolean dumpThreadsOnTearDownError = Boolean.valueOf(System.getProperty(
"org.eclipse.epp.mpc.tests.dump.threads", "true"));
Expand Down Expand Up @@ -325,7 +326,7 @@ private static void dumpThreads() {
Method dumpMethod = ThreadMXBean.class.getMethod("dumpAllThreads", Boolean.TYPE, Boolean.TYPE);
ThreadInfo[] threadInfos = (ThreadInfo[]) dumpMethod.invoke(threadMXBean, true, true);
for (ThreadInfo threadInfo : threadInfos) {
logger.debug(threadInfo);
logger.debug(threadInfo.toString());
}
} catch (NoSuchMethodException e) {
dumpThreadsOnTearDownError = false;
Expand Down

0 comments on commit 11b9c2d

Please sign in to comment.