#3707: Log 500 errors to file when in production
------------------------------------------+---------------------------------
Reporter: yary h <[EMAIL PROTECTED]> | Owner: adrian
Status: closed | Component: Core
framework
Version: SVN | Resolution: wontfix
Keywords: error log | Stage: Design
decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------------------+---------------------------------
Changes (by mtredinnick):
* status: new => closed
* resolution: => wontfix
Comment:
This patch is not thread- or multi-process safe -- messages will get
interspersed with each other (which can't always be avoided without a lot
of work, but we should try a little bit). Also, we shouldn't be
reimplementing file logging for a webserver. The stderr output file
descriptor exists for this purpose and we should be using it, if we are
going to do this in core. The problem with that is that this is going to
log a _lot_ of information each time there's a problem (and often when
such a problem occurs, it happens more than once until it is attended to).
This could be implemented as a piece of middleware, instead. That way it
can be dropped in just when wanted, without needing to put it in the main
code.
I think I'm going to wontfix this for now. A piece of middleware that used
Python's standard logging module (so was properly configurable) for this
purpose -- logging particular HTTP error codes -- might be worth
considering for contrib/, though.
--
Ticket URL: <http://code.djangoproject.com/ticket/3707#comment:4>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---