alan-turing-institute / data-classification-app

Classification webapp for the Turing Data Safe Haven
MIT License
4 stars 0 forks source link

Add email handling to Django logging #138

Open tomdoel opened 5 years ago

tomdoel commented 5 years ago

The Django logging is configured to stream warnings and errors to stdout so they are picked up by the Azure log stream.

An additional handler can be added to email the system manager in error situations.

tomdoel commented 5 years ago

Should also configure the ADMINS variable to send admins 500 error messages

tomdoel commented 5 years ago

I think it is worth configuring this because we would then get email records of any server errors that occur during classification. We need to link this to a Turing email server, or possibly install an email server on the VM as I don't believe Azure App Service has email serving by default.

Configuring in Django: https://docs.djangoproject.com/en/2.2/howto/error-reporting/

tomdoel commented 4 years ago

Required work: