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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]