http-client-branch: Add some more logging to sun.net.httpserver.ServerImpl http-client-branch
authordfuchs
Tue, 14 Nov 2017 15:57:11 +0000
branchhttp-client-branch
changeset 55814 cb1e2086ca36
parent 55813 1b61574881e8
child 55815 4f699653026b
http-client-branch: Add some more logging to sun.net.httpserver.ServerImpl
src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java
--- a/src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java	Tue Nov 14 15:28:10 2017 +0000
+++ b/src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java	Tue Nov 14 15:57:11 2017 +0000
@@ -551,9 +551,11 @@
                 requestLine = req.requestLine();
                 if (requestLine == null) {
                     /* connection closed */
+                    logger.log(Level.DEBUG, "no request line: closing");
                     closeConnection(connection);
                     return;
                 }
+                logger.log(Level.DEBUG, "Exchange request line: {0}", requestLine);
                 int space = requestLine.indexOf (' ');
                 if (space == -1) {
                     reject (Code.HTTP_BAD_REQUEST,