diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/search/mgt/impl/QueryBuilderImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/search/mgt/impl/QueryBuilderImpl.java index 04d52bf5145..d5d0b1700a2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/search/mgt/impl/QueryBuilderImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/search/mgt/impl/QueryBuilderImpl.java @@ -113,12 +113,12 @@ public class QueryBuilderImpl implements QueryBuilder { queries.put(Constants.LOCATION, this.processLocation(locCondition)); } -// if (log.isDebugEnabled()) { - log.info("General Query : " + queries.get(Constants.GENERAL)); - log.info("Property with AND Query : " + queries.get(Constants.PROP_AND)); - log.info("Property with OR Query : " + queries.get(Constants.PROP_OR)); - log.info("Location related Query : " + queries.get(Constants.LOCATION)); -// } + if (log.isDebugEnabled()) { + log.debug("General Query : " + queries.get(Constants.GENERAL)); + log.debug("Property with AND Query : " + queries.get(Constants.PROP_AND)); + log.debug("Property with OR Query : " + queries.get(Constants.PROP_OR)); + log.debug("Location related Query : " + queries.get(Constants.LOCATION)); + } return queries; }