Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

60937: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3)
      60816: MNT-10323: QueryModelException: Descen dant/IN_TREE() is unsupported by opening WCMQS
      Logging level has been changed from INFO to DEBUG for the queries that cannot be executed against the DB


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62372 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 14:43:54 +00:00
parent 440634ed7a
commit 7d59e9392c

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
* Copyright (C) 2005-2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -123,7 +123,12 @@ public class DbOrIndexSwitchingQueryLanguage extends AbstractLuceneQueryLanguage
}
catch(QueryModelException qme)
{
logger.info("DB query failed for "+dbQueryLanguage.getName()+" for "+searchParameters, qme);
// MNT-10323: Logging configuration on JBoss leads to clogging of the log with a lot of these errors because of INFO level when WQS module is installed
if (logger.isDebugEnabled())
{
logger.debug("DB query failed for " + dbQueryLanguage.getName() + " for " + searchParameters, qme);
}
if(indexQueryLanguage != null)
{
if(logger.isDebugEnabled())