GustaV wrote:

> Another silly question : how can I know the exception that
> was raised while in the 'document' method? It would be useful
> to write my error message...  In the environ variable, except
> 'paste.evalexception' (which doesn't seems to be what I want)
> nothing looks like an exception report!

I don't have an answer to that particular question. You might want
to ask that on the Pylons list.

However, I can tell you what I do, which is to configure the error
handler to send an email to a special address with the full error
message, trace back, WSGI environment, etc. I also configure the
error handler to write all this information to a log file on the
servers:  You can do the same using the following configuration
parameters:

     from_address = [EMAIL PROTECTED]
     email_to = [EMAIL PROTECTED]
     smtp_server = localhost
     error_subject_prefix = Application Error:
     error_log = /tmp/error.log

Best of luck to you.

--
Jonathan LaCour
http://cleverdevil.org


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

Reply via email to