Fix stackless logger for jdbc session tests

This commit is contained in:
Jan Bartel 2016-03-17 12:54:56 +11:00
parent add04e8fba
commit 51a4fc2f9e
2 changed files with 4 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.client.api.Request;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
import org.eclipse.jetty.toolchain.test.TestingDir;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.StacklessLogging;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.webapp.WebAppContext;
@ -94,7 +95,7 @@ public class ReloadedSessionMissingClassTest
webApp.addServlet("Bar", "/bar");
server1.start();
int port1 = server1.getPort();
try (StacklessLogging stackless = new StacklessLogging(JDBCSessionManager.class))
try (StacklessLogging stackless = new StacklessLogging(Log.getLogger("org.eclipse.jetty.server.session")))
{
HttpClient client = new HttpClient();
client.start();

View File

@ -18,6 +18,7 @@
package org.eclipse.jetty.server.session;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.StacklessLogging;
import org.junit.After;
import org.junit.Test;
@ -43,7 +44,7 @@ public class SessionExpiryTest extends AbstractSessionExpiryTest
@Test
public void testSessionExpiry() throws Exception
{
try(StacklessLogging stackless=new StacklessLogging(JDBCSessionManager.class))
try(StacklessLogging stackless=new StacklessLogging(Log.getLogger("org.eclipse.jetty.server.session")))
{
super.testSessionExpiry();
}