Skip to content

Commit

Permalink
Make loading hectorLog4j.xml optional, controlled by system property …
Browse files Browse the repository at this point in the history
…com.prettyprint.cassandra.load_hector_log4j
  • Loading branch information
rantav committed May 8, 2010
1 parent 611774b commit f0fe591
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -73,7 +73,10 @@ public void registerMonitor(String name, String monitorType, Object monitoringIn
mbs.registerMBean(monitoringInterface, oName); mbs.registerMBean(monitoringInterface, oName);


// Register perf4j monitors // Register perf4j monitors
registerPerf4J(); if ("true".equalsIgnoreCase(
System.getProperty("com.prettyprint.cassandra.load_hector_log4j", "true"))) {
registerPerf4J();
}
} }


private void registerPerf4J() { private void registerPerf4J() {
Expand Down

0 comments on commit f0fe591

Please sign in to comment.