changed some log.info statements back to debug
This commit is contained in:
parent
1d5f5e4edb
commit
504037488f
2 changed files with 8 additions and 9 deletions
|
@ -205,11 +205,11 @@ public class IndividualListController extends FreemarkerHttpServlet {
|
||||||
try{
|
try{
|
||||||
// make query for multiple rdf types
|
// make query for multiple rdf types
|
||||||
SolrQuery query = getQuery(vclassURIs, alpha);
|
SolrQuery query = getQuery(vclassURIs, alpha);
|
||||||
log.info("Executed solr query for " + vclassURIs.toString());
|
log.debug("Executed solr query for " + vclassURIs.toString());
|
||||||
rvMap = getResultsForVClassQuery(query, page, alpha, indDao, context);
|
rvMap = getResultsForVClassQuery(query, page, alpha, indDao, context);
|
||||||
List<Individual> individuals = (List<Individual>) rvMap.get("entities");
|
List<Individual> individuals = (List<Individual>) rvMap.get("entities");
|
||||||
if (individuals == null)
|
if (individuals == null)
|
||||||
log.info("entities list is null for vclass " + vclassURIs.toString() );
|
log.debug("entities list is null for vclass " + vclassURIs.toString() );
|
||||||
} catch(Throwable th) {
|
} catch(Throwable th) {
|
||||||
log.error("Error retrieving individuals corresponding to intersection multiple classes." + vclassURIs.toString(), th);
|
log.error("Error retrieving individuals corresponding to intersection multiple classes." + vclassURIs.toString(), th);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,13 +42,12 @@ public class DataGetterUtils {
|
||||||
//Get types associated with page
|
//Get types associated with page
|
||||||
Map<String,Object> data = new HashMap<String,Object>();
|
Map<String,Object> data = new HashMap<String,Object>();
|
||||||
List<String> dataGetters = (List<String>)page.get("dataGetters");
|
List<String> dataGetters = (List<String>)page.get("dataGetters");
|
||||||
//TODO: Change back to debug
|
log.debug("Retrieved data getters for Page " + pageUri + " = " + dataGetters.toString());
|
||||||
log.info("Retrieved data getters for Page " + pageUri + " = " + dataGetters.toString());
|
|
||||||
if( dataGetters != null ){
|
if( dataGetters != null ){
|
||||||
for( String dataGetter : dataGetters){
|
for( String dataGetter : dataGetters){
|
||||||
Map<String,Object> moreData = null;
|
Map<String,Object> moreData = null;
|
||||||
PageDataGetter getter = dataGetterMap.get(dataGetter);
|
PageDataGetter getter = dataGetterMap.get(dataGetter);
|
||||||
log.info("Retrieved data getter for " + dataGetter);
|
log.debug("Retrieved data getter for " + dataGetter);
|
||||||
try{
|
try{
|
||||||
moreData = getAdditionalData(pageUri, dataGetter, page, vreq, getter, context);
|
moreData = getAdditionalData(pageUri, dataGetter, page, vreq, getter, context);
|
||||||
if( moreData != null)
|
if( moreData != null)
|
||||||
|
@ -143,7 +142,7 @@ public class DataGetterUtils {
|
||||||
|
|
||||||
if( getter != null ){
|
if( getter != null ){
|
||||||
try{
|
try{
|
||||||
log.info("Retrieve data for this data getter for " + pageUri);
|
log.debug("Retrieve data for this data getter for " + pageUri);
|
||||||
return getter.getData(context, vreq, pageUri, page);
|
return getter.getData(context, vreq, pageUri, page);
|
||||||
}catch(Throwable th){
|
}catch(Throwable th){
|
||||||
log.error(th,th);
|
log.error(th,th);
|
||||||
|
@ -200,12 +199,12 @@ public class DataGetterUtils {
|
||||||
for(String vclassId: vitroClassIdStr) {
|
for(String vclassId: vitroClassIdStr) {
|
||||||
vclass = vreq.getWebappDaoFactory().getVClassDao().getVClassByURI(vclassId);
|
vclass = vreq.getWebappDaoFactory().getVClassDao().getVClassByURI(vclassId);
|
||||||
if (vclass == null) {
|
if (vclass == null) {
|
||||||
log.info("Couldn't retrieve vclass ");
|
log.error("Couldn't retrieve vclass ");
|
||||||
throw new Exception (errorMessage = "Class " + vclassId + " not found");
|
throw new Exception (errorMessage = "Class " + vclassId + " not found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
log.info("parameter vclassId URI parameter expected ");
|
log.error("parameter vclassId URI parameter expected ");
|
||||||
throw new Exception("parameter vclassId URI parameter expected ");
|
throw new Exception("parameter vclassId URI parameter expected ");
|
||||||
}
|
}
|
||||||
List<String> vclassIds = Arrays.asList(vitroClassIdStr);
|
List<String> vclassIds = Arrays.asList(vitroClassIdStr);
|
||||||
|
@ -233,7 +232,7 @@ public class DataGetterUtils {
|
||||||
rObj.put("alpha", map.get("alpha"));
|
rObj.put("alpha", map.get("alpha"));
|
||||||
|
|
||||||
List<Individual> inds = (List<Individual>)map.get("entities");
|
List<Individual> inds = (List<Individual>)map.get("entities");
|
||||||
log.info("Number of individuals returned from request: " + inds.size());
|
log.debug("Number of individuals returned from request: " + inds.size());
|
||||||
JSONArray jInds = new JSONArray();
|
JSONArray jInds = new JSONArray();
|
||||||
for(Individual ind : inds ){
|
for(Individual ind : inds ){
|
||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue