[zope] What options exist for dealing with traceback

Didier Georgieff Didier Georgieff <dgieff@divinerites.com>
Sat, 23 Sep 2000 13:57:45 +0100


On 23 Sep 2000, at 10:27, zope@egroups.com <zope@egroups.com> (zope@egroups.com) wrote:

>    From: Skip Montanaro <skip@mojam.com>
> Subject: What options exist for dealing with tracebacks?
> 
> I would love it if I could set some debug environment variable, run with
> -D="skip@mojam.com" or subclass some Error class and have tracebacks mailed
> to me.  I wouldn't even care about the flood of email.  At least I'd have
> all the inputs.

I have modified the Standard Error Message for emailing each time 
an error occurs. Works fine for me.

-----------------------------
<dtml-comment> ***** MAIL a l'administrateur *****</dtml-comment>
<dtml-sendmail 
  mailhost="MailHost" 
  mailto="didier.georgieff@agriculture.gouv.fr" 
  mailfrom="didier.georgieff@agriculture.gouv.fr">
To : Zope Admin <didier.georgieff@agriculture.gouv.fr>
From : Zope Web Server ERROR <didier.georgieff@agriculture.gouv.fr>
Subject : Zope Error at <dtml-var URL>

URL de la page : <dtml-var URL>
<dtml-with URL>modifiée le <dtml-var "bobobase_modification_time()"></dtml-with>
[other parameters, version, etc ...]

<dtml-in "REQUEST.items()" sort>
 <dtml-var sequence-key>: <dtml-var sequence-item>
</dtml-in>

<dtml-if error_message>
 <dtml-var error_message>
<dtml-else>

[whatever you need]

</dtml-if>
</dtml-sendmail>
Valeur de l'erreur: <!--#var error_value-->
------- End of forwarded message -------
-- 
Divine Rites - Strasbourg, France
=======================================================================
10" Storming the Citadel available via mail order only !
Check it on http://www.divinerites.com/dr_drr.htm

Radio Birdman, New Christs, Deniz Tek, Citadel Records & more ...
http://www.divinerites.com