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); |