Added extra log messages

This commit is contained in:
Norbi Peti 2018-09-15 14:19:18 +02:00
parent 73b02518a4
commit 6911df7f60
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -59,6 +59,7 @@ public class BridgePage extends Page {
exchange.getResponseBody().close(); // It'll only get here when the communication is already done
} catch (IOException ex) { //Failed to send it over HTTP, GET connection closed
closeSocket(exchange); //We only have one GET, connection over
System.out.println("[BWM] [" + id + "] over (GET): " + ex.toString());
}
return null; // Response already sent
case "DELETE":
@ -71,6 +72,7 @@ public class BridgePage extends Page {
} catch (IOException e) {
if (e instanceof SocketException) {
closeSocket(exchange);
System.out.println("[BWM] [" + id + "] closed: " + e.toString());
return new Response(410, "Socket Gone because of error: " + e, exchange);
}
e.printStackTrace();