added some log.isDebugEnabled checks. No Jira issue.

This commit is contained in:
Tim Worrall 2015-01-23 08:57:41 -05:00
parent dfb1b05691
commit 39062cb5e2
4 changed files with 12 additions and 4 deletions

View file

@ -120,7 +120,9 @@ public class GeoFocusMapLocations extends AbstractAjaxResponder {
response = response.substring(0, response.lastIndexOf(","));
}
response += " ]";
log.debug(response);
if ( log.isDebugEnabled() ) {
log.debug(response);
}
return response;
} catch (Exception e) {
log.error("Failed geographic focus locations", e);

View file

@ -44,7 +44,9 @@ public class ManageGrantsForIndividualController extends FreemarkerHttpServlet {
body.put("subjectUri", subjectUri);
HashMap<String, List<Map<String,String>>> grants = getGrants(subjectUri, vreq);
log.debug("grants = " + grants);
if ( log.isDebugEnabled() ) {
log.debug("grants = " + grants);
}
body.put("grants", grants);
List<String> allSubclasses = getAllSubclasses(grants);

View file

@ -44,7 +44,9 @@ public class ManagePeopleForOrganizationController extends FreemarkerHttpServlet
body.put("subjectUri", subjectUri);
HashMap<String, List<Map<String,String>>> people = getPeople(subjectUri, vreq);
log.debug("people = " + people);
if ( log.isDebugEnabled() ) {
log.debug("people = " + people);
}
body.put("people", people);
List<String> allSubclasses = getAllSubclasses(people);

View file

@ -44,7 +44,9 @@ public class ManagePublicationsForIndividualController extends FreemarkerHttpSer
body.put("subjectUri", subjectUri);
HashMap<String, List<Map<String,String>>> publications = getPublications(subjectUri, vreq);
log.debug("publications = " + publications);
if ( log.isDebugEnabled() ) {
log.debug("publications = " + publications);
}
body.put("publications", publications);
List<String> allSubclasses = getAllSubclasses(publications);