Send admin email notifications when the logger hits an error
When I used to develop in Django, there was a convenient AdminEmailHandler
module for the logger, that would notify the site admins via email whenever the server hit a 500 error. This was really helpful for tracking errors.
In Django it looked something like this:
ADMIN_EMAILS = ["alex@alexgleason.me"]
LOGGING = {
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
}
}
Someone has already figured out how to do pretty much the same thing in Elixir: http://reganmian.net/blog/2015/08/26/email-notifications-about-errors-in-elixir/
I think it would be useful for Pleroma to add this, and include a simple boolean setting for admins to toggle it. I think it would help demystify some issues.