You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2006/08/31 22:44:44 UTC

svn commit: r439044 - /logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/helpers/OptionConverter.java

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