Author: alessio.soldano(a)jboss.com
Date: 2012-06-05 06:18:34 -0400 (Tue, 05 Jun 2012)
New Revision: 16390
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
Log:
Create logger only when needed for exception dealing
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2012-06-05
10:17:41 UTC (rev 16389)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2012-06-05
10:18:34 UTC (rev 16390)
@@ -46,10 +46,6 @@
*/
public final class EndpointServlet extends AbstractEndpointServlet implements
ServletDelegate
{
-
- // provide logging
- protected static final Logger log = Logger.getLogger(EndpointServlet.class);
-
private List<PreDestroyHolder> preDestroyRegistry = new
LinkedList<PreDestroyHolder>();
private final Object lock = new Object();
@@ -85,7 +81,7 @@
}
catch (Exception exception)
{
- log.error(exception.getLocalizedMessage(), exception);
+
Logger.getLogger(EndpointServlet.class).error(exception.getLocalizedMessage(),
exception);
}
}
this.preDestroyRegistry.clear();
Show replies by date