/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1606 by torben, Thu Apr 28 16:55:52 2011 UTC revision 1607 by torben, Tue Oct 4 17:35:31 2011 UTC
# Line 41  public class CircuitBreakerListener impl Line 41  public class CircuitBreakerListener impl
41                  notif.addNotifier( new JavaLogNotifier() );                  notif.addNotifier( new JavaLogNotifier() );
42                                    
43                  //only send mail on prod server                  //only send mail on prod server
44                  if (sce.getServletContext().getRealPath("/").startsWith("/home/app/")  ) {                                if (sce.getServletContext().getRealPath("/").startsWith("/home/app/")  ) {
45                          notif.addNotifier( new MailNotifier("traininfo@t-hoerup.dk", "torben@t-hoerup.dk", "192.168.10.5") );                          String mailRecipient = settings.getMailRecipient();
46                            
47                            if (mailRecipient != null && (!mailRecipient.isEmpty() ) ) {
48                                    notif.addNotifier( new MailNotifier("traininfo@t-hoerup.dk", mailRecipient, "192.168.10.5") );
49                            }
50          }          }
51                    
52                  LoggingCircuitBreaker banedk = new LoggingCircuitBreaker("banedk", settings);                  LoggingCircuitBreaker banedk = new LoggingCircuitBreaker("banedk", settings);

Legend:
Removed from v.1606  
changed lines
  Added in v.1607

  ViewVC Help
Powered by ViewVC 1.1.20