Author: nilsga
Date: Sun Dec 21 12:04:33 2008
New Revision: 728486

URL: http://svn.apache.org/viewvc?rev=728486&view=rev
Log:
WW-2874 Only log configuration exception as error if in devMode.

Modified:
    
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java?rev=728486&r1=728485&r2=728486&view=diff
==============================================================================
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
 Sun Dec 21 12:04:33 2008
@@ -472,7 +472,13 @@
                 
request.setAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY, stack);
             }
         } catch (ConfigurationException e) {
-            LOG.error("Could not find action or result", e);
+               // WW-2874 Only log error if in devMode
+               if(devMode) {
+                       LOG.error("Could not find action or result", e);
+               }
+               else {
+                       LOG.warn("Could not find action or result", e);
+               }
             sendError(request, response, context, 
HttpServletResponse.SC_NOT_FOUND, e);
         } catch (Exception e) {
             sendError(request, response, context, 
HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e);


Reply via email to