Skip to content

Commit eb0b0f6

Browse files
elharomichael-o
authored andcommitted
Remove debugging strings from test output (#204)
1 parent 54faaa8 commit eb0b0f6

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/test/java/org/apache/maven/plugins/site/deploy/AuthAsyncProxyServlet.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
import org.apache.commons.io.FileUtils;
3232
import org.apache.commons.io.IOUtils;
3333
import org.eclipse.jetty.proxy.AsyncProxyServlet;
34-
import org.slf4j.Logger;
35-
import org.slf4j.LoggerFactory;
3634

3735
/**
3836
* @author Olivier Lamy
@@ -42,8 +40,6 @@ public class AuthAsyncProxyServlet extends AsyncProxyServlet {
4240

4341
private long sleepTime = 0;
4442

45-
private Logger log = LoggerFactory.getLogger(getClass());
46-
4743
List<HttpRequest> httpRequests = new ArrayList<>();
4844

4945
private File siteTargetPath;
@@ -81,12 +77,11 @@ public AuthAsyncProxyServlet(Map<String, String> authentications, long sleepTime
8177
}
8278

8379
/** {@inheritDoc} */
80+
@Override
8481
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
8582
final HttpServletRequest request = (HttpServletRequest) req;
8683
final HttpServletResponse response = (HttpServletResponse) res;
8784

88-
log.info("handle ");
89-
9085
if (this.authentications != null && !this.authentications.isEmpty()) {
9186
String proxyAuthorization = request.getHeader("Proxy-Authorization");
9287
if (proxyAuthorization != null && proxyAuthorization.startsWith("Basic ")) {
@@ -126,7 +121,6 @@ public void service(ServletRequest req, ServletResponse res) throws ServletExcep
126121

127122
if (request.getMethod().equalsIgnoreCase("PUT") && targetPath != null) {
128123
File targetFile = new File(siteTargetPath, targetPath);
129-
log.info("writing file " + targetFile.getPath());
130124
FileUtils.writeByteArrayToFile(targetFile, IOUtils.toByteArray(request.getInputStream()));
131125
}
132126

src/test/java/org/apache/maven/plugins/site/deploy/SimpleDavServerHandler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
import org.eclipse.jetty.server.handler.AbstractHandler;
3838
import org.eclipse.jetty.servlet.ServletContextHandler;
3939
import org.eclipse.jetty.servlet.ServletHolder;
40-
import org.slf4j.Logger;
41-
import org.slf4j.LoggerFactory;
4240

4341
/**
4442
* @author Olivier Lamy
@@ -47,8 +45,6 @@
4745
*/
4846
public class SimpleDavServerHandler {
4947

50-
private Logger log = LoggerFactory.getLogger(getClass());
51-
5248
private Server server;
5349

5450
private File siteTargetPath;
@@ -58,6 +54,7 @@ public class SimpleDavServerHandler {
5854
public SimpleDavServerHandler(final File targetPath) throws Exception {
5955
this.siteTargetPath = targetPath;
6056
Handler repoHandler = new AbstractHandler() {
57+
@Override
6158
public void handle(String target, Request r, HttpServletRequest request, HttpServletResponse response)
6259
throws IOException, ServletException {
6360
String targetPath = request.getPathInfo();
@@ -77,7 +74,6 @@ public void handle(String target, Request r, HttpServletRequest request, HttpSer
7774

7875
if (request.getMethod().equalsIgnoreCase("PUT")) {
7976
File targetFile = new File(siteTargetPath, targetPath);
80-
log.info("writing file " + targetFile.getPath());
8177
FileUtils.writeByteArrayToFile(targetFile, IOUtils.toByteArray(request.getInputStream()));
8278
}
8379

0 commit comments

Comments
 (0)