don't throw exception when publishing review under mod_wsgi
Review Request #697 — Created Jan. 14, 2009 and submitted
This simple patch removes what I assume is a forgotten debugging print statement. By default, mod_wsgi disables sys.stdout and "print" throws: Traceback: File "//usr/lib64/python2.5/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/srv/reviewboard/py/djblets/webapi/decorators.py" in _checklogin 32. response = view_func(request, *args, **kwargs) File "/usr/lib64/python2.5/site-packages/django/views/decorators/http.py" in inner 31. return func(request, *args, **kwargs) File "/srv/reviewboard/py/reviewboard/webapi/json.py" in review_draft_save 887. print "Ship it: %s (%s)" % (review.ship_it, type(review.ship_it)) Exception Type: IOError at /api/json/reviewrequests/56/reviews/draft/publish/ Exception Value: sys.stdout access restricted by mod_wsgi