tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Context.java
Date Sun, 02 Apr 2000 20:39:57 GMT
craigmcc    00/04/02 13:39:57

  Modified:    src/share/org/apache/tomcat/core Context.java
  Log:
  Add a string-valued setter for debug level (although the property setting
  logic in XmlMapper should really be enhanced to deal with this kind of
  thing.)
  PR:163
  Submitted by:	sim@nyx.xs4all.nl
  
  Revision  Changes    Path
  1.76      +8 -0      jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java
  
  Index: Context.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- Context.java	2000/03/29 23:31:04	1.75
  +++ Context.java	2000/04/02 20:39:57	1.76
  @@ -585,6 +585,14 @@
   	debug=level;
       }
   
  +    public void setDebug( String level ) {
  +	try {
  +	    setDebug( Integer.parseInt(level) );
  +	} catch (Exception e) {
  +	    log("Set debug to '" + level + "':", e);
  +	}
  +    }
  +
       public int getDebug( ) {
   	return debug;
       }
  
  
  

Mime
View raw message