Monday, November 16, 2020

Server error emails - send elsewhere?

Django makes it really easy to set up server error reports that are sent to email. It will notify the email addresses specified in the ADMINS setting "whenever your code raises an unhandled exception and results in an internal server error (strictly speaking, for any response with an HTTP status code of 500 or greater)".

Is it possible to easily send these server error reports somewhere other than email, like another type of handler for example? I basically want to send those exact same errors to something like Bugsnag instead of getting emailed out.

I have tried the django.requests logger, but it didn't include all 5XX errors.
Do I also need to use the django.server logger to handle the same errors as the built-in server error report?

Any insight here is much appreciated!

Gady

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/547ed149-a979-4a9b-a9e6-7a001b590fa0n%40googlegroups.com.

No comments:

Post a Comment