i've somehow got a unicode error on production, where data may come from
any one of a number of sources. it's going to be a pain to replicate this
on dev.
The traceback i'm generating isn't helping much at all (see below). does
anyone have a suggestion on how to get better logging and track down the
cause ?
-----------
Traceback (most recent call last):
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/paste/deploy/config.py",
line 291, in __call__
return self.app(environ, start_response)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/router.py",
line 251, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/router.py",
line 227, in invoke_subrequest
response = handle_request(request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/tweens.py",
line 21, in excview_tween
response = handler(request)
File
"/var/www/sites/App-svn_tag-current_production/web-pylons/App/app/tweens/__init__.py",
line 56, in exception_logging_tween
return handler(request)
File
"/var/www/sites/App-svn_tag-current_production/web-pylons/App/app/tweens/__init__.py",
line 31, in statsd_timing_tween
response = handler(request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid_sqlassist/tweens.py",
line 36, in sqlassist_tween
response = handler(request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid_tm/__init__.py",
line 82, in tm_tween
reraise(*exc_info)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid_tm/__init__.py",
line 63, in tm_tween
response = handler(request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/router.py",
line 161, in handle_request
response = view_callable(context, request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/config/views.py",
line 369, in rendered_view
context)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/renderers.py",
line 531, in render_view
return self.render_to_response(response, system, request=request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/renderers.py",
line 561, in render_to_response
result = self.render(value, system_values, request=request)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid/renderers.py",
line 557, in render
result = renderer(value, system_values)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid_mako-0.3-py2.7.egg/pyramid_mako/__init__.py",
line 152, in __call__
reraise(MakoRenderingException(errtext), None, exc_info[2])
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/pyramid_mako-0.3-py2.7.egg/pyramid_mako/__init__.py",
line 144, in __call__
result = template.render_unicode(**system)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/mako/template.py",
line 452, in render_unicode
as_unicode=True)
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/mako/runtime.py",
line 784, in _render
return context._pop_buffer().getvalue()
File
"/var/www/sites/App-virtualenv/local/lib/python2.7/site-packages/mako/util.py",
line 150, in getvalue
return self.delim.join(self.data)
pyramid_mako.MakoRenderingException:
-----------
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.