mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
cleanup logs for Travis
This commit is contained in:
parent
b3dc409926
commit
66f781b716
@ -77,10 +77,6 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
|||||||
|
|
||||||
clientUtil = new ClientUtil(target());
|
clientUtil = new ClientUtil(target());
|
||||||
|
|
||||||
wiser = new Wiser();
|
|
||||||
wiser.setPort(2500);
|
|
||||||
wiser.start();
|
|
||||||
|
|
||||||
httpServer = HttpServer.createSimpleServer(getClass().getResource("/").getFile(), "localhost", getPort());
|
httpServer = HttpServer.createSimpleServer(getClass().getResource("/").getFile(), "localhost", getPort());
|
||||||
WebappContext context = new WebappContext("GrizzlyContext", "/docs");
|
WebappContext context = new WebappContext("GrizzlyContext", "/docs");
|
||||||
context.addFilter("requestContextFilter", RequestContextFilter.class)
|
context.addFilter("requestContextFilter", RequestContextFilter.class)
|
||||||
@ -98,6 +94,10 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
|||||||
reg.setAsyncSupported(true);
|
reg.setAsyncSupported(true);
|
||||||
context.deploy(httpServer);
|
context.deploy(httpServer);
|
||||||
httpServer.start();
|
httpServer.start();
|
||||||
|
|
||||||
|
wiser = new Wiser();
|
||||||
|
wiser.setPort(2500);
|
||||||
|
wiser.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -124,11 +124,11 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
|||||||
@After
|
@After
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
if (httpServer != null) {
|
|
||||||
httpServer.shutdownNow();
|
|
||||||
}
|
|
||||||
if (wiser != null) {
|
if (wiser != null) {
|
||||||
wiser.stop();
|
wiser.stop();
|
||||||
}
|
}
|
||||||
|
if (httpServer != null) {
|
||||||
|
httpServer.shutdownNow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,5 +6,6 @@ log4j.appender.MEMORY=com.sismics.util.log4j.MemoryAppender
|
|||||||
log4j.appender.MEMORY.size=1000
|
log4j.appender.MEMORY.size=1000
|
||||||
|
|
||||||
log4j.logger.com.sismics=INFO
|
log4j.logger.com.sismics=INFO
|
||||||
log4j.logger.org.hibernate=INFO
|
log4j.logger.com.sismics.util.jpa=ERROR
|
||||||
|
log4j.logger.org.hibernate=ERROR
|
||||||
log4j.logger.org.apache.pdfbox=INFO
|
log4j.logger.org.apache.pdfbox=INFO
|
Loading…
Reference in New Issue
Block a user