Skip to content

Commit

Permalink
fix issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
evernat committed Mar 25, 2016
1 parent 9368829 commit dba091d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ public void init(FilterConfig config) throws ServletException {
// de fait cela agrège aussi les values des inserts
System.setProperty(Parameters.PARAMETER_SYSTEM_PREFIX + Parameter.SQL_TRANSFORM_PATTERN, "\\([\\?, ]+\\)");
}

if (Parameters.getParameter(Parameter.DISPLAYED_COUNTERS) == null) {
// disable jsp counter to fix https://github.com/javamelody/liferay-javamelody/issues/5,
// the jsp counter does not display anything anyway.
// In consequence, jsf, job, ejb, jpa, spring, guice are also disabled.
System.setProperty(Parameters.PARAMETER_SYSTEM_PREFIX + Parameter.DISPLAYED_COUNTERS, "http,sql,error,log");
}

super.init(config);

Expand Down

0 comments on commit dba091d

Please sign in to comment.