Skip to content
Browse files

Make loading hectorLog4j.xml optional, controlled by system property …

…com.prettyprint.cassandra.load_hector_log4j
  • Loading branch information...
1 parent 611774b commit f0fe591df7352f542160aca4de01480abbccd2c3 @rantav rantav committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/java/me/prettyprint/cassandra/service/JmxMonitor.java
View
5 src/main/java/me/prettyprint/cassandra/service/JmxMonitor.java
@@ -73,7 +73,10 @@ public void registerMonitor(String name, String monitorType, Object monitoringIn
mbs.registerMBean(monitoringInterface, oName);
// Register perf4j monitors
- registerPerf4J();
+ if ("true".equalsIgnoreCase(
+ System.getProperty("com.prettyprint.cassandra.load_hector_log4j", "true"))) {
+ registerPerf4J();
+ }
}
private void registerPerf4J() {

0 comments on commit f0fe591

Please sign in to comment.
Something went wrong with that request. Please try again.