Hi,
I'm getting a whole bunch of errors related to logging on Python 2.4::
ERROR: Missing templates are correctly reported by test client
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lrekucki/projekty/django/django_trunk/tests/regressiontests/test_client_regress/models.py",
line 583, in test_no_404_template
response = self.client.get("/no_such_view/")
File "/home/lrekucki/projekty/django/django_trunk/django/test/client.py",
line 298, in get
response = self.request(**r)
File "/home/lrekucki/projekty/django/django_trunk/django/test/client.py",
line 238, in request
response = self.handler(environ)
File "/home/lrekucki/projekty/django/django_trunk/django/test/client.py",
line 79, in __call__
response = self.get_response(request)
File
"/home/lrekucki/projekty/django/django_trunk/django/core/handlers/base.py",
line 139, in get_response
return self.handle_uncaught_exception(request, resolver, sys.exc_info())
File
"/home/lrekucki/projekty/django/django_trunk/django/core/handlers/base.py",
line 182, in handle_uncaught_exception
extra={
File "/home/lrekucki/python/plain2.4//lib/python2.4/logging/__init__.py",
line 999, in error
apply(self._log, (ERROR, msg, args), kwargs)
TypeError: _log() got an unexpected keyword argument 'extra'
Sadly, it's true - log functions don't have extra=* in Python 2.4[1].
Possible solutions I can see right now:
* revert the logging patch (that would be quite bad)
* try to do some ugly monkey patching to the logging module
* drop Python 2.4 support
Opinions ?
[1]: http://docs.python.org/library/logging.html#logging.debug
--
Łukasz Rekucki
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en.