Just a question, what are you using trace() for.  It is mostly used for
debugging, but in your case it sounds like it will be executed every time
the program runs and keep appending to the file?  What are you trying to
achieve if that is true.

Ilya Sterin

-----Original Message-----
From: Tim Bunce
To: Colin Meyer
Cc: '[EMAIL PROTECTED] '
Sent: 3/22/01 3:47 AM
Subject: Re: success of DBI->trace() calls?

On Wed, Mar 07, 2001 at 10:27:38PM -0800, Colin Meyer wrote:
> 
> On Wed, Mar 07, 2001 at 05:16:02PM +0000, Tim Bunce wrote:
> > Ilya's suggestion is a good one.
> >
> > The next version of the DBI will at least generate a warn()'ing that
> > can be caught using $SIG{__WARN__} if you need to.
> 
> What happens if the trace logfile becomes unwriteable later in the
> program (e.g. disk fills up, or an NFS mounted volume becomes
> unavailable)?

Then the writes will silently fail.

> Also, it would be nice to have the return value of DBI->trace
documented.

It is for the next release.

Tim.

Reply via email to