From 7d59e9392c349c5c4115ab751c87d28a01f55940 Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Wed, 12 Feb 2014 14:43:54 +0000 Subject: [PATCH] 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 --- .../impl/solr/DbOrIndexSwitchingQueryLanguage.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/repo/search/impl/solr/DbOrIndexSwitchingQueryLanguage.java b/source/java/org/alfresco/repo/search/impl/solr/DbOrIndexSwitchingQueryLanguage.java index e693726f2a..7e69688081 100644 --- a/source/java/org/alfresco/repo/search/impl/solr/DbOrIndexSwitchingQueryLanguage.java +++ b/source/java/org/alfresco/repo/search/impl/solr/DbOrIndexSwitchingQueryLanguage.java @@ -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())