Author: shane.bryzak(a)jboss.com
Date: 2008-12-10 19:42:44 -0500 (Wed, 10 Dec 2008)
New Revision: 9752
Modified:
trunk/src/main/org/jboss/seam/exception/Exceptions.java
trunk/src/main/org/jboss/seam/pages-2.1.xsd
Log:
JBSEAM-3817
Modified: trunk/src/main/org/jboss/seam/exception/Exceptions.java
===================================================================
--- trunk/src/main/org/jboss/seam/exception/Exceptions.java 2008-12-10 11:20:02 UTC (rev
9751)
+++ trunk/src/main/org/jboss/seam/exception/Exceptions.java 2008-12-11 00:42:44 UTC (rev
9752)
@@ -165,15 +165,15 @@
LogLevel logLevel = LogLevel.error;
try
{
- logLevel = exception.attributeValue("logLevel") != null ?
-
LogLevel.valueOf(exception.attributeValue("logLevel").toLowerCase()) : null;
+ logLevel = exception.attributeValue("log-level") != null ?
+
LogLevel.valueOf(exception.attributeValue("log-level").toLowerCase()) : null;
}
catch (IllegalArgumentException ex)
{
StringBuilder sb = new StringBuilder();
sb.append("Exception handler");
if (className != null) sb.append(" for class " + className);
- sb.append(" is configured with an invalid logLevel. Acceptable
" +
+ sb.append(" is configured with an invalid log-level. Acceptable
" +
"values are: fatal,error,warn,info,debug,trace. " +
"A default level of 'error' has been configured
instead.");
log.warn(sb.toString());
Modified: trunk/src/main/org/jboss/seam/pages-2.1.xsd
===================================================================
--- trunk/src/main/org/jboss/seam/pages-2.1.xsd 2008-12-10 11:20:02 UTC (rev 9751)
+++ trunk/src/main/org/jboss/seam/pages-2.1.xsd 2008-12-11 00:42:44 UTC (rev 9752)
@@ -56,7 +56,7 @@
<xs:attributeGroup name="attlist.exception">
<xs:attribute name="class" type="xs:token"/>
<xs:attribute name="log" type="pages:tf-boolean"/>
- <xs:attribute name="logLevel"
type="pages:loglevel-values"/>
+ <xs:attribute name="log-level"
type="pages:loglevel-values"/>
</xs:attributeGroup>
<xs:element name="conversation">