tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From melaqu...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper Constants.java
Date Fri, 23 Mar 2001 22:58:09 GMT
melaquias    01/03/23 14:58:09

  Modified:    src/share/org/apache/jasper Constants.java
  Log:
  Put check in message() behavior for null return value from getString(key) call.
  
  If string resource not there, log key parameter as the message.
  
  Revision  Changes    Path
  1.19      +3 -1      jakarta-tomcat/src/share/org/apache/jasper/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/Constants.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Constants.java	2001/03/23 22:55:37	1.18
  +++ Constants.java	2001/03/23 22:58:09	1.19
  @@ -243,7 +243,9 @@
   	    jasperLog = Log.getLog("JASPER_LOG", null);
   
   	if (jasperLog != null)
  -	    jasperLog.log(getString(key, args), verbosityLevel);
  +	    String msg = getString(key,args);
  +	    msg=(msg==null)?key:msg;
  +	    jasperLog.log(msg, verbosityLevel);
       }
   
       public static Log jasperLog = null;
  
  
  

Mime
View raw message