But you could, inside your Application instance, create SMTP instance. And then extend this method:
def send_error(self, status_code=500, **kwargs)
to email you the error message before rendering error.
- Didip -
In your RequestHandler, you can override
_handle_request_exception(...) and do all kinds of things with that
exception.
We actually check if debug is enabled and if so drop into a pdb
session at that point. Makes for a very nice environment in tracking
down bugs.
-j
--
The Christian ideal has not been tried and found wanting;
it has been found difficult and left untried – G. K. Chesterton
-Ben
--
Cheers,
Ray Chuan
Agreed. I started noticing this change in behavior recently in the
github version too. I swear a few weeks ago all exceptions printed. I
think it's the result of some recent change.
--
Pete
I'm pretty sure it's due to this commit:
6e7c8b9 (Avoid use of the @contextlib.contextmanager decorator., Fri Dec 10)
Going to 6e7c8b9^ gives the usual traceback.
Another way to get the traceback with tornado's master would be to
override _stack_context_handle_exception() to return non-True/nothing
(I've been trying to post this here but it's not appearing).
--
Cheers,
Ray Chuan
-Ben