Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Jannis Leidel
> Put this another way-- how do other people manage high-performance > exception mailing? I'm happily using James Tauber's django-mailer for asynchronous mailing: http://code.google.com/p/django-mailer/ You could for example query the Django app cache if it's installed and fall back to django

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Jeremy Dunck
On Tue, Dec 16, 2008 at 6:53 PM, Malcolm Tredinnick wrote: ... > You only have to override the handle_uncaught_exception() method -- > that's where the mailing is restricted to. Bah, that's what I get for looking at my pre-1.0 django rev. Sorry for the noise. :-( --~--~-~--~~-

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Malcolm Tredinnick
On Tue, 2008-12-16 at 16:15 -0600, Jeremy Dunck wrote: > On Tue, Dec 16, 2008 at 3:44 PM, Jacob Kaplan-Moss > wrote: > > > > On Tue, Dec 16, 2008 at 11:56 AM, Jeremy Dunck wrote: > >> Since sending email can block for an arbitrarily long time, I'd like > >> to make it so that when an exception

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread David Cramer
We simply send them to localhost. Learned the lesson long ago to not spam a normal email account with it :) On Dec 16, 4:15 pm, "Jeremy Dunck" wrote: > On Tue, Dec 16, 2008 at 3:44 PM, Jacob Kaplan-Moss > > > > wrote: > > > On Tue, Dec 16, 2008 at 11:56 AM, Jeremy Dunck wrote: > >> Since sendi

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Robert Coup
On Wed, Dec 17, 2008 at 11:15 AM, Jeremy Dunck wrote: > > Put this another way-- how do other people manage high-performance > exception mailing? Maybe I'm Doing It Wrong. Run postfix on the host server and have Django send errors to localhost. Then postfix queues it and emails it on as approp

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Jeremy Dunck
On Tue, Dec 16, 2008 at 3:44 PM, Jacob Kaplan-Moss wrote: > > On Tue, Dec 16, 2008 at 11:56 AM, Jeremy Dunck wrote: >> Since sending email can block for an arbitrarily long time, I'd like >> to make it so that when an exception occurs in >> django.core.handlers.base, it calls our mail_admins rat

Re: Exception emails in django.core.handlers.base

2008-12-16 Thread Jacob Kaplan-Moss
On Tue, Dec 16, 2008 at 11:56 AM, Jeremy Dunck wrote: > Since sending email can block for an arbitrarily long time, I'd like > to make it so that when an exception occurs in > django.core.handlers.base, it calls our mail_admins rather than > django's stock mail_admins. > > With an eye towards bac

Exception emails in django.core.handlers.base

2008-12-16 Thread Jeremy Dunck
We've locally implemented an asynchronous mailing system and made it have the same function signatures. So .mail has all the same function names and signatures as django.core.mail. Since sending email can block for an arbitrarily long time, I'd like to make it so that when an exception occurs in