I have my Django instance configured with
"mail_admins": {
"level": "ERROR",
"class": "django.utils.log.AdminEmailHandler",
},
When I get logging.error()
messages, I don't know where they were generated and would like to in order to possibly change their level to squelch noise.
Adding include_html=True
did not add a stack trace.
I've looked through AdminEmailHandler
and I haven't found an obvious way to hook this capability in.