summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-14 17:42:15 +0100
committerSimon Rettberg2016-01-14 17:42:15 +0100
commit93788ebb43d3603c063262ac76d7061f10a7ef0a (patch)
tree774ee337f994c27c07f2a35b56cedab931263813
parent[server] Delete temporary file after closing (diff)
downloadtutor-module-93788ebb43d3603c063262ac76d7061f10a7ef0a.tar.gz
tutor-module-93788ebb43d3603c063262ac76d7061f10a7ef0a.tar.xz
tutor-module-93788ebb43d3603c063262ac76d7061f10a7ef0a.zip
[server] Remove stupid debug output
-rw-r--r--dozentenmodulserver/src/main/java/fi/iki/elonen/NanoHTTPD.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/dozentenmodulserver/src/main/java/fi/iki/elonen/NanoHTTPD.java b/dozentenmodulserver/src/main/java/fi/iki/elonen/NanoHTTPD.java
index 7b437414..e4d265ae 100644
--- a/dozentenmodulserver/src/main/java/fi/iki/elonen/NanoHTTPD.java
+++ b/dozentenmodulserver/src/main/java/fi/iki/elonen/NanoHTTPD.java
@@ -201,26 +201,21 @@ public abstract class NanoHTTPD implements Runnable {
do {
try {
final Socket finalAccept = myServerSocket.accept();
- LOGGER.info("Accepted connection");
registerConnection(finalAccept);
finalAccept.setSoTimeout(SOCKET_READ_TIMEOUT);
final InputStream inputStream = finalAccept.getInputStream();
asyncRunner.exec(new Runnable() {
@Override
public void run() {
- LOGGER.info("Starting worker");
OutputStream outputStream = null;
try {
outputStream = finalAccept.getOutputStream();
HTTPSession session = new HTTPSession(inputStream, outputStream,
finalAccept.getInetAddress());
while (!finalAccept.isClosed() && !finalAccept.isInputShutdown()) {
- LOGGER.info("Pre-execute");
session.execute();
- LOGGER.info("Post-execute");
}
} catch (Exception e) {
- LOGGER.info("Post-execute (ex)");
// When the socket is closed by the client, we throw our own SocketException
// to break the "keep alive" loop above.
if (!(e instanceof SocketTimeoutException)
@@ -232,7 +227,6 @@ public abstract class NanoHTTPD implements Runnable {
safeClose(inputStream);
safeClose(finalAccept);
unRegisterConnection(finalAccept);
- LOGGER.info("Finished worker");
}
}
});
@@ -848,11 +842,8 @@ public abstract class NanoHTTPD implements Runnable {
{
int read = -1;
try {
- LOGGER.info("A " + inputStream.available());
read = inputStream.read(buf, 0, BUFSIZE);
- LOGGER.info("B");
} catch (Exception e) {
- LOGGER.info("C");
safeClose(inputStream);
safeClose(outputStream);
throw e;
@@ -1023,7 +1014,6 @@ public abstract class NanoHTTPD implements Runnable {
}
String uri = st.nextToken();
- LOGGER.info("URI: " + uri);
// Decode parameters from the URI
int qmi = uri.indexOf('?');