I think the problem was that pyramid_exclog does its logging in a Tween. 
When rendering my view an HTTPNotFound exception would be raised and the 
exception view that handles HTTPNotFound was called. The tween only gets 
called after the first view and not the second exception handling view 
which raises a non-http exception.

It seems weird that the Tween gets called between the two views instead of 
at the end of the request. Maybe logging exceptions is best done in WSGI 
Middleware.

--Jason

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/xXu9ZYleEzIJ.
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