2370: TemplateSyntaxError: Caught NameError while rendering: global name 'logging' is not defined

mda***@efficienc********* (Google Code) (Is this you? Claim this profile.)
Nov. 5, 2011
What version are you running?
1.6.1
Centos 5.7 x64
Python 2.4

What's the URL of the page containing the problem?


What steps will reproduce the problem?
1.Create a review request
2.Give an invalid link for the bug tracker

What is the expected output? What do you see instead?
Normal Code Review

Instead you get the attached error.


What operating system are you using? What browser?
Fedora 15 w/ Opera 
Windows 7 w/ IE 9

Please provide any additional information below.
I added the line "import logging" to 
/usr/lib/python2.4/site-packages/ReviewBoard-1.6.1-py2.4.egg/reviewboard/reviews/templatetags/reviewtags.py
and it worked again as expected
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.6.1-py2.4.egg/reviewboard/diffviewer/views.py", line 162, in view_diff
    RequestContext(request, context))
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/template/loader.py", line 183, in render_to_string
    return t.render(Context(dictionary))
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/template/base.py", line 123, in render
    return self._render(context)
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/template/base.py", line 117, in _render
    return self.nodelist.render(context)
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/template/base.py", line 744, in render
    bits.append(se
david
#1 david
This has already been fixed in git and will ship in 1.6.2. Thanks!
  • +Fixed