| 7 | import org.slf4j.LoggerFactory; |
| 8 | |
| 9 | @Configuration |
| 10 | public class WebConfig { |
| 11 | private static final Logger logger = LoggerFactory.getLogger(WebConfig.class); |
| 12 | |
| 13 | @Bean |
| 14 | public Filter SimpleCORSFilter() { |
| 15 | return new SimpleCORSFilter(); |
| 16 | } |
| 17 | |
| 18 | static { |
| 19 | if ( System.getenv("NOTIFICATION_EMAIL") != null ){ |
| 20 | try { Sns.createSubscription(); } |
| 21 | catch (Exception e ) { |
| 22 | logger.warn("Failed to create subscription for email "+ System.getenv("NOTIFICATION_EMAIL")); |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | } |
nothing calls this directly
no test coverage detected