[seam-commits] Seam SVN: r7304 - trunk/src/main/org/jboss/seam/exception.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jan 30 05:52:55 EST 2008


Author: shane.bryzak at jboss.com
Date: 2008-01-30 05:52:55 -0500 (Wed, 30 Jan 2008)
New Revision: 7304

Modified:
   trunk/src/main/org/jboss/seam/exception/Exceptions.java
Log:
set default log level to 'error'

Modified: trunk/src/main/org/jboss/seam/exception/Exceptions.java
===================================================================
--- trunk/src/main/org/jboss/seam/exception/Exceptions.java	2008-01-30 08:43:09 UTC (rev 7303)
+++ trunk/src/main/org/jboss/seam/exception/Exceptions.java	2008-01-30 10:52:55 UTC (rev 7304)
@@ -155,21 +155,20 @@
             String className = exception.attributeValue("class");
             boolean logEnabled = exception.attributeValue("log") != null ? 
                   Boolean.valueOf(exception.attributeValue("log")) : true;
-            LogLevel logLevel = null;
+            LogLevel logLevel = LogLevel.error;
             try
             {
                logLevel = exception.attributeValue("logLevel") != null ?
                      LogLevel.valueOf(exception.attributeValue("logLevel")) : null;
             }
             catch (IllegalArgumentException ex)
-            {
-               logLevel = LogLevel.debug;
+            { 
                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 " +
                          "values are: fatal,error,warn,info,debug,trace. " +
-                         "A default level of debug has been configured instead.");               
+                         "A default level of 'error' has been configured instead.");               
                log.warn(sb.toString());
             }
             




More information about the seam-commits mailing list