Hello,

in a default Django installation the 500 responses are handled by the
logger, not a middleware. It is possible to write a middleware that
captures all error responses, and sends a mail about each of them (or only
if they are relevant). I don't know of any that is already written, but
based on the information you gave, it's not a hard task.

Best,
Gergely
On 30 Aug 2015 15:30, "Avraham Serour" <tovm...@gmail.com> wrote:

> add logging messages everywhere that matters, include any information
> relevant to you, then monitor the logs. the ELK stack is nice (
> https://www.elastic.co/products/logstash)
>
> On Sun, Aug 30, 2015 at 7:49 AM, <murat.kne...@googlemail.com> wrote:
>
>> Hello,
>>
>> I'd like to notify our customer support of certain errors. For example,
>> if a sign up fails (a 500, for whatever reason), I want them to get a mail
>> with as much information as possible about the customers and their request,
>> so they can contact them and resolve the issue. Two questions about this:
>>
>> AFAIK, the settings.MANAGERS are similar in nature: They're the ones
>> administering the site, being notified of 404s using the
>> BrokenLinkEmailsMiddleware
>> <https://docs.djangoproject.com/en/1.8/ref/middleware/#django.middleware.common.BrokenLinkEmailsMiddleware>.
>> Are they *meant* to also get support mails, or what is their role exactly?
>>
>> Is there an app, middleware or view decorator that will notify a group of
>> ppl (either users in a group or a list of email addresses), when a certain
>> status code / error occurs (e.g. 500, 400, 404) at certain views? I'd need
>> the ability to customize the mail template to make sure that all
>> information needed to act upon the issue is there.
>>
>> Google search, searching the mailing list archives and the error-handling
>> grid of Django-packages revealed nothing even close to what I am looking
>> for.
>>
>> Thank you for any pointers!
>>
>> Cheers,
>> murat
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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/22122da6-f5bb-47f0-99b7-2c674c39e2fd%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/22122da6-f5bb-47f0-99b7-2c674c39e2fd%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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/CAFWa6t%2BMULAb6rqtPxqptsy0%3DGTZfUFeJ3BMxzOUHBDK1QMQng%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFWa6t%2BMULAb6rqtPxqptsy0%3DGTZfUFeJ3BMxzOUHBDK1QMQng%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CACczBULLeAhcv4G7ECNHjFDMqENyD7-69qH9k44kbtTE-XfWxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to