@jedp updated, mind merging in?
The if !db lines accommodate unit testing without redis running/installed.
Modify those lines to return 200/ if testing, or 500 if in prod.
If we fill up the redis DB again, or it crashes or whatever, the service will stop infuriatingly telling you you've got zero emails. This is good.
Handle missing db properly in test and prod. Fixes #4.
Prepend ISO timestamps to log lines.
Updated to add the ISO timestamps that were so incredibly helpful when debugging deployer recently.
I should add that 1/6 unit tests fails before and after this change, with redis turned off, and all tests pass before and after, with redis turned on (running on localhost).
@rfk mind a little quid pro quo review/merge action over here? ;-)