#14406 closed (fixed)
Logging doesn't work under Python 2.4
| Reported by: | Russell Keith-Magee | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
As reported by Łukasz Rekucki on django-dev:
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'
This is because the 'extra' argument to logging calls didn't existing until Python 2.5.
Attachments (1)
Change History (5)
by , 15 years ago
| Attachment: | t14406.diff added |
|---|
comment:1 by , 15 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 15 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
I've run the test suite with Python 2.4 and this works fine.
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Possible fix for Python 2.4 logging.