--- android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java 2011/04/11 07:52:15 1285 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java 2011/04/11 07:53:45 1286 @@ -7,6 +7,7 @@ import javax.servlet.annotation.WebListener; import dk.thoerup.circuitbreaker.AccountingCircuitBreaker; +import dk.thoerup.circuitbreaker.LoggingCircuitBreaker; import dk.thoerup.circuitbreaker.CircuitBreakerManager; import dk.thoerup.circuitbreaker.jmx.JMXWrapper; import dk.thoerup.circuitbreaker.notification.*; @@ -39,7 +40,7 @@ notif.addNotifier( new MailNotifier("traininfo@t-hoerup.dk", "torben@t-hoerup.dk", "192.168.10.5") ); - AccountingCircuitBreaker banedk = new AccountingCircuitBreaker("banedk", threshold, timeout); + LoggingCircuitBreaker banedk = new LoggingCircuitBreaker("banedk", threshold, timeout); banedk.setNotifier(notif); mgr.addCircuitBreaker( banedk );