logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r439044 - /logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java
Date Thu, 31 Aug 2006 20:44:44 GMT
Author: carnold
Date: Thu Aug 31 13:44:44 2006
New Revision: 439044

URL: http://svn.apache.org/viewvc?rev=439044&view=rev
Log:
Bug 37119: Space after log level causes default level to be used

Modified:
    logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java

Modified: logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java?rev=439044&r1=439043&r2=439044&view=diff
==============================================================================
--- logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java
(original)
+++ logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java
Thu Aug 31 13:44:44 2006
@@ -182,6 +182,8 @@
   Level toLevel(String value, Level defaultValue) {
     if(value == null)
       return defaultValue;
+      
+    value = value.trim();
 
     int hashIndex = value.indexOf('#');
     if (hashIndex == -1) {



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message