[Zope] Problem with saving error_message to db

Jens Grewen zope@grewen.de
Fri, 1 Mar 2002 21:37:42 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0032_01C1C169.51A836F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Maybe there is a logger product that allows logging to db (Interbase).
Please let me know if you know such a product.

Jens
  ----- Original Message -----=20
  From: Jens Grewen=20
  To: zope@zope.org=20
  Sent: Friday, March 01, 2002 9:33 PM
  Subject: [Zope] Problem with saving error_message to db


  Hi,

  I want to save the error_message and/or the error_type/error_value to =
a connected Interbase DB.
  When an error is raised I call an sqlmethod from the =
standard_error_messege that should save the error_messeg to Interbase.
  The problem is that the transaction of the sql method probably rolles =
back because it is called from standard_error_message.
  Is there a way to submit the error_message. (commit the transaction)


  Thanks in advance

  Jens

------=_NextPart_000_0032_01C1C169.51A836F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Maybe there is a logger product that =
allows logging=20
to db (Interbase).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please let me know if you know such a=20
product.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jens</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dzope@grewen.de href=3D"mailto:zope@grewen.de">Jens =
Grewen</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dzope@zope.org=20
  href=3D"mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, March 01, 2002 =
9:33=20
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Zope] Problem with =
saving=20
  error_message to db</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I want to save the error_message =
and/or the=20
  error_type/error_value to a connected Interbase DB.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>When an error is raised I call an =
sqlmethod from=20
  the standard_error_messege that should save the error_messeg to=20
  Interbase.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>The problem is that the transaction =
of the sql=20
  method probably rolles back because it is called=20
  from&nbsp;standard_error_message.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Is there a way to submit the =
error_message.=20
  (commit the transaction)</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>Jens</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0032_01C1C169.51A836F0--