mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-2874 Only log configuration exception as error if in devMode.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@728486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -472,7 +472,13 @@ public class Dispatcher {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user