Commits

Anonymous committed 874e1b3

XW-645 Logging is to verbose in ParamtersInterceptor

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1839e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

src/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java

             } catch (RuntimeException e) {
                 if (devMode) {
                     String developerNotification = LocalizedTextUtil.findText(ParametersInterceptor.class, "devmode.notification", ActionContext.getContext().getLocale(), "Developer Notification:\n{0}", new Object[]{
-                            e.getMessage()
+                             "Unexpected Exception caught setting '" + name + "' on '" + action.getClass() + ": " + e.getMessage()
                     });
                     LOG.error(developerNotification);
                     if (action instanceof ValidationAware) {
                         ((ValidationAware) action).addActionMessage(developerNotification);
                     }
-                    LOG.warn("ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '" + name + "' on '" + action.getClass() + ": " + e.getMessage());
                 }
             }
         }

src/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptor.java

                 } catch (RuntimeException e) {
                     if (devMode) {
                         String developerNotification = LocalizedTextUtil.findText(ParametersInterceptor.class, "devmode.notification", ActionContext.getContext().getLocale(), "Developer Notification:\n{0}", new Object[]{
-                                e.getMessage()
+                                "Unexpected Exception caught setting '" + entry.getKey() + "' on '" + action.getClass() + ": " + e.getMessage()
                         });
                         LOG.error(developerNotification);
                         if (action instanceof ValidationAware) {
                             ((ValidationAware) action).addActionMessage(developerNotification);
                         }
-                        LOG.warn("StaticParametersInterceptor - [setParameters]: Unexpected Exception caught setting '" + entry.getKey() + "' on '" + action.getClass() + ": " + e.getMessage());
                     }
                 }
             }