I am sending myself WebApp error reports from Pylons when users hit critical errors and I would love to be able to get the full output of session[] in the reports and customize it to my liking, but I’ve got no idea how to do that, or where the report is actually created / put together.
Anyone know how I can accomplish that?
I thank Michael for answering me, without really giving me anything to build on. That meant I had to figure it out myself, and that’s always a good thing 🙂
What I did was, I looked at /config/middleware.py in my Pylons project and found this line:
I made my own ErrorHandler def and my own ErrorMiddleware class at the top of the middleware.py file:
So now, I can throw in some extra variables I want to be sent with my error emails. Simple enough …