Added extra log messages
This commit is contained in:
parent
73b02518a4
commit
6911df7f60
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ public class BridgePage extends Page {
|
||||||
exchange.getResponseBody().close(); // It'll only get here when the communication is already done
|
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
|
} catch (IOException ex) { //Failed to send it over HTTP, GET connection closed
|
||||||
closeSocket(exchange); //We only have one GET, connection over
|
closeSocket(exchange); //We only have one GET, connection over
|
||||||
|
System.out.println("[BWM] [" + id + "] over (GET): " + ex.toString());
|
||||||
}
|
}
|
||||||
return null; // Response already sent
|
return null; // Response already sent
|
||||||
case "DELETE":
|
case "DELETE":
|
||||||
|
@ -71,6 +72,7 @@ public class BridgePage extends Page {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if (e instanceof SocketException) {
|
if (e instanceof SocketException) {
|
||||||
closeSocket(exchange);
|
closeSocket(exchange);
|
||||||
|
System.out.println("[BWM] [" + id + "] closed: " + e.toString());
|
||||||
return new Response(410, "Socket Gone because of error: " + e, exchange);
|
return new Response(410, "Socket Gone because of error: " + e, exchange);
|
||||||
}
|
}
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in a new issue