mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user