Most of changes here are to add better logging and error handling.
Defined logging block for both dev and prod. prod will log as it did before, although I would like to change this if docker is detected in some way. Not a big priority though. In dev, errors are logged to standard out/error which has been helpful (especially with setting PYTHONUNBUFFERED=1 in the Dockerfile (this change is already in).
Defined error handling middleware/exception for AMT related errors. This should better warn users and inform them the source of the error (in my case not using https).
Most of changes here are to add better logging and error handling.
dev
andprod
.prod
will log as it did before, although I would like to change this if docker is detected in some way. Not a big priority though. Indev
, errors are logged to standard out/error which has been helpful (especially with settingPYTHONUNBUFFERED=1
in the Dockerfile (this change is already in).post.py
as well.