8262935: Add missing logging to sun.net.httpserver.ServerImpl

Reviewed-by: dfuchs, michaelm
This commit is contained in:
Julia Boes 2021-03-04 12:04:10 +00:00
parent 22513199e5
commit b817855340

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -667,14 +667,16 @@ class ServerImpl implements TimeSource {
} catch (IOException e1) {
logger.log (Level.TRACE, "ServerImpl.Exchange (1)", e1);
closeConnection(connection);
} catch (NumberFormatException e3) {
} catch (NumberFormatException e2) {
logger.log (Level.TRACE, "ServerImpl.Exchange (2)", e2);
reject (Code.HTTP_BAD_REQUEST,
requestLine, "NumberFormatException thrown");
} catch (URISyntaxException e) {
} catch (URISyntaxException e3) {
logger.log (Level.TRACE, "ServerImpl.Exchange (3)", e3);
reject (Code.HTTP_BAD_REQUEST,
requestLine, "URISyntaxException thrown");
} catch (Exception e4) {
logger.log (Level.TRACE, "ServerImpl.Exchange (2)", e4);
logger.log (Level.TRACE, "ServerImpl.Exchange (4)", e4);
closeConnection(connection);
}
}