Skip to content

Commit

Permalink
handle SNS exception during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunderl committed Aug 22, 2017
1 parent 871e788 commit aa9a495
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/scorekeep/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ public Filter SimpleCORSFilter() {

static {
if ( System.getenv("NOTIFICATION_EMAIL") != null ){
Sns.createSubscription();
try { Sns.createSubscription(); }
catch (Exception e ) {
logger.warn("Failed to create subscription for email "+ System.getenv("NOTIFICATION_EMAIL"));
}
}
}
}

0 comments on commit aa9a495

Please sign in to comment.