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 = response.substring(0, response.lastIndexOf(","));
} }
response += " ]"; response += " ]";
if ( log.isDebugEnabled() ) {
log.debug(response); log.debug(response);
}
return response; return response;
} catch (Exception e) { } catch (Exception e) {
log.error("Failed geographic focus locations", e); log.error("Failed geographic focus locations", e);

View file

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

View file

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

View file

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