azavea / osmesa

OSMesa is an OpenStreetMap processing stack based on GeoTrellis and Apache Spark
Apache License 2.0
79 stars 26 forks source link

Rollup message send status into email message #176

Closed CloudNiner closed 4 years ago

CloudNiner commented 4 years ago

Sent to predefined admin emails set via new config env variable AOI_ADMIN_EMAILS.

Adds a new errorMessage logging func to go with warnMessage and updates a few logging calls.

Note that if the whole job crashes we still won't catch it. We're handling that via some separate infrastructure changes in the backlog.

Testing

I tested this in the same way as I did for #173, with a local MailHog SMTP server running in Docker.

Demo

Screen Shot 2019-11-26 at 11 37 42 AM