Skip to content
Permalink
Browse files
8262935: Add missing logging to sun.net.httpserver.ServerImpl
Reviewed-by: dfuchs, michaelm
  • Loading branch information
FrauBoes committed Mar 4, 2021
1 parent 2251319 commit b81785534030ba5e156eed41ad22178c31ffb448
Showing 1 changed file with 6 additions and 4 deletions.
@@ -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 @@ public void run () {
} 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);
}
}

0 comments on commit b817855

Please sign in to comment.