Changed the GET "readonly" transaction warning to DEBUG level as it was a little verbose!

To turn on use the following Log4J setting:

log4j.logger.org.alfresco.repo.web.scripts.RepositoryContainer=debug

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-09-27 11:02:35 +00:00
parent 9703401640
commit cd2d7dd13c

View File

@@ -451,9 +451,9 @@ public class RepositoryContainer extends AbstractRuntimeContainer implements Ten
// log a warning if we detect a GET webscript being run in a readwrite transaction, GET calls should // log a warning if we detect a GET webscript being run in a readwrite transaction, GET calls should
// NOT have any side effects so this scenario as a warning sign something maybe amiss, see ALF-10179. // NOT have any side effects so this scenario as a warning sign something maybe amiss, see ALF-10179.
if (logger.isWarnEnabled() && !readonly && "GET".equalsIgnoreCase(description.getMethod())) if (logger.isDebugEnabled() && !readonly && "GET".equalsIgnoreCase(description.getMethod()))
{ {
logger.warn("Webscript with URL '" + scriptReq.getURL() + logger.debug("Webscript with URL '" + scriptReq.getURL() +
"' is a GET request but it's descriptor has declared a readwrite transaction is required"); "' is a GET request but it's descriptor has declared a readwrite transaction is required");
} }