Author: remy.maucherat(a)jboss.com
Date: 2008-10-29 11:31:36 -0400 (Wed, 29 Oct 2008)
New Revision: 826
Modified:
trunk/java/org/apache/tomcat/bayeux/BayeuxServlet.java
Log:
- Debug param.
Modified: trunk/java/org/apache/tomcat/bayeux/BayeuxServlet.java
===================================================================
--- trunk/java/org/apache/tomcat/bayeux/BayeuxServlet.java 2008-10-29 15:16:52 UTC (rev
825)
+++ trunk/java/org/apache/tomcat/bayeux/BayeuxServlet.java 2008-10-29 15:31:36 UTC (rev
826)
@@ -228,6 +228,11 @@
ctx.setAttribute(TOMCAT_BAYEUX_ATTR,new TomcatBayeux());
this.tb = (TomcatBayeux)ctx.getAttribute(TOMCAT_BAYEUX_ATTR);
tb.setReconnectInterval(getReconnectInterval());
+ if (servletConfig.getInitParameter("debug") != null)
+ debug = Integer.parseInt(servletConfig.getInitParameter("debug"));
+ if (debug > 0) {
+ servletConfig.getServletContext().log("Init " + getServletInfo());
+ }
}
public void service(ServletRequest servletRequest, ServletResponse servletResponse)
throws ServletException, IOException {
Show replies by date