[ 
https://issues.apache.org/struts/browse/WW-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46106#action_46106
 ] 

Dave Newton commented on WW-3096:
---------------------------------

Why not just turn down the log level for ServletUrlRenderer?

I'm not sure I'd vote for turning this down in the source; this is a relatively 
unusual use-case for which there is a workaround: most people writing S2 apps 
will want to be warned, as it's almost always something wrong in their 
configuration.

> change log level from "warn" to "debug" in 
> org.apache.struts2.components.ServletUrlRenderer
> -------------------------------------------------------------------------------------------
>
>                 Key: WW-3096
>                 URL: https://issues.apache.org/struts/browse/WW-3096
>             Project: Struts 2
>          Issue Type: Improvement
>            Reporter: zhouyanming
>
> we are not always only use struts2,sometimes need use spring action 
> process,like <s2:form action="/thisisspringaction">
> so change
> if (namespace != null) {
>               LOG.warn("No configuration found for the specified action: '" + 
> actionName + "' in namespace: '" + namespace + "'. Form action defaulting to 
> 'action' attribute's literal value.");
>             }
> to
>  if (namespace != null && LOG.isDebugEnabled())) {
>               LOG.debug("No configuration found for the specified action: '" 
> + actionName + "' in namespace: '" + namespace + "'. Form action defaulting 
> to 'action' attribute's literal value.");
>             }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to