#25763: Django missing repr friendly formatting of request
------------------------------+--------------------
     Reporter:  atarkowska    |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  Core (Other)  |    Version:  1.8
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+--------------------
 I found this feature https://docs.djangoproject.com/en/1.6/topics/logging
 /#django-request-logger very useful. Since upgrade to 1.8 request object
 is no longer nicely formatted


 formatter:
 {{{
 '%(asctime)s %(levelname)5.5s [%(name)40.40s]'
     ' (proc.%(process)5.5d) %(funcName)s():%(lineno)d'
     ' HTTP %(status_code)d REQUEST %(request)s')
 }}}



 {{{
 2015-11-16 13:45:55,579 ERROR [                          django.request]
 (proc.07627) handle_uncaught_exception():256 HTTP 500 REQUEST
 <WSGIRequest: GET '/app/error_page/'>
 Traceback (most recent call last):...
 }}}

 str or repr(request) is missing, GET, POST, COOKIES and META

--
Ticket URL: <https://code.djangoproject.com/ticket/25763>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.3c52c35c8b33ebcbd7db6f278fa01bed%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to