I'm also reasonably certain that this isn't limited to just 
AdminEmailHandler. It seems like *nothing* I set up as a logging handler 
for 500 errors gets triggered.

On Wednesday, March 25, 2015 at 12:47:59 PM UTC-7, Robert Rollins wrote:
>
> I'm at my whit's end trying to debug this problem with one of my Django 
> sites. I've done absolutely everything I can think of, and that google 
> direct me to, to make it send 500 emails, but to no avail. For some reason 
> I cannot fathom, even with every logging setting I know set to the Django 
> 1.6 defaults, the AdminEmailHandler doesn't ever trigger.
>
> Here's what I've got in terms of settings:
>
> DEBUG=False
> ADMINS = (('Admins', '[email protected]'),)
>
> EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
>
> LOGGING is not defined, so I'm using the Django defaults (which do send 
> 500 emails in another site I have installed on the same machine). 
> handler500 is not defined. Using the console EmailBackend means I don't 
> have to worry about SMTP servers.
>
> Sending emails inside a manage.py shell instance with 
> django.core.mail.send_mail() pushes the email into the console just fine, 
> so it's not the email config itself. 
>
> Using PyDev to debug the execution, I see that AdminEmailHandler.emit() is 
> never called, which appears to be because it's not in the list of handlers 
> configured to deal with 500 errors. But WHY?! Even explicitly configuring 
> AdminEmailHandler to handle django.request ERRORs by copying 
> django.utils.log.DEFAULT_LOGGING doesn't work.
>
> What is going on?! :(
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/24503134-a985-4f97-b1e7-1fc5c34f6481%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to