Hello,
I'm having a problem seeing true exception messages in both the
tracebacks that get dumped into the apache error log and those that
get emailed to me.  The full traceback call stack is accurate, but the
exception message has been covered so that the final line always looks
like RequestException: RequestException.

I'm not sure where to begin looking (after google) in either the
pyramid codebase or documentation to figure out how to cause the
RequestException to retain the original message.  Any pointers?

Thanks in advance for any help!
Brian Hawthorne

-------------------------------------------------------------------------------------------
Here is an example trace copied from the apache error log:
(I'm seeing this for fails in all app code, not just sqlalchemy)

[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38] mod_wsgi
(pid=18426): Exception occurred processing WSGI script '/www/pegasus/
apache/staging.wsgi'.
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38] Traceback (most
recent call last):
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/repoze.tm2-1.0b2-
py2.7.egg/repoze/tm/__init__.py", line 24, in __call__
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     result =
self.application(environ, save_status_and_headers)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/router.py", line 187, in __call__
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     response =
self.handle_request(request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/tweens.py", line 37, in excview_tween
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     response =
view_callable(exc, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 342, in viewresult_to_response
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     result =
view(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/tweens.py", line 20, in excview_tween
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     response =
handler(request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/router.py", line 164, in handle_request
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     response =
view_callable(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 549, in __call__
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     return
view(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 289, in attr_view
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     return
view(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 262, in predicate_wrapper
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     return
view(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 342, in viewresult_to_response
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     result =
view(context, request)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/pyramid-1.3a1-py2.7.egg/
pyramid/config/views.py", line 401, in _class_requestonly_view
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     response =
getattr(inst, attr)()
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/www/
pegasus/pegasus/view/handler/dsp/edit.py", line 140, in save
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     node =
node_creator(type_codename=type_codename, **corevals)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/www/
pegasus/pegasus/model/intermediate2/builder/process_builder.py", line
53, in create_new_process
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
intermediate2_db_session.flush()
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/scoping.py", line 113, in do
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     return
getattr(self.registry(), name)(*args, **kwargs)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/session.py", line 1547, in flush
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
self._flush(objects)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/session.py", line 1616, in _flush
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
flush_context.execute()
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/unitofwork.py", line 328, in execute
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
rec.execute(self)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/unitofwork.py", line 472, in execute
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     uow
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/orm/mapper.py", line 2264, in _save_obj
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
execute(statement, multiparams)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/engine/base.py", line 1405, in execute
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     params)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/engine/base.py", line 1538, in
_execute_clauseelement
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
compiled_sql, distilled_params
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/engine/base.py", line 1646, in
_execute_context
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     context)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/engine/base.py", line 1639, in
_execute_context
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]     context)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]   File "/
sandboxen/pegasus/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-
linux-x86_64.egg/sqlalchemy/engine/default.py", line 330, in
do_execute
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
cursor.execute(statement, parameters)
[Tue Feb 07 23:26:29 2012] [error] [client 10.10.7.38]
RequestException: RequestException

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to