alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

Rework environment identification in alert emails. #66

Closed saulius closed 11 years ago

saulius commented 11 years ago

As seen in whitehall app, it seems that environment name can be fetched from FACTER_govuk_platform environment variable.

In all the emails I get I see production which is not really correct, I would like to see preview/production.

saulius commented 11 years ago

Btw, as @matthewford mentioned, how about we add date as prefix too, so that mails would be grouped by date in gmail. The subject line would look like this then: "[2013-01-31][warn][preview] Message text".

jabley commented 11 years ago

Adding a date sounds like a good idea.

saulius commented 11 years ago

I updated the pull request with dates and single method for mail prefix formatting.