djangosnippets.org: Latest snippets tagged with 'reporting'https://djangosnippets.org/tags/reporting/2010-10-28T13:16:41.048778-05:00Detailed Error Reporting by Email
2010-10-28T13:16:41.048778-05:00Archatashttps://djangosnippets.org/snippets/2244/<p>The default traceback sent by email when an error occurs, usually gives too little information comparing it to the error page in the DEBUG mode. This snippet guerilla-patches error handling and sends by email the same information as you would see in DEBUG mode.</p>
<p>To set it up, add the …</p>
Freely redistributableajax error sink
2008-10-14T07:14:25.660668-05:00amituhttps://djangosnippets.org/snippets/1140/<p>Often its useful to get error information for ajax/javascript errors happening on various clients. This can go to something like this:</p>
<pre><code># error_sink
def error_sink(request):
# post request, with event name in "event", and event data in "data"
context = request.REQUEST.get("context", "")
context = cgi.parse_qs(context)
context["data"] = cgi.parse_qs(context.get("data", [""])[0])
context["user"] …</code></pre>
Freely redistributable