Apache::DBI. Is it running?

Apache::DBI. Is it running?

am 17.05.2008 23:28:10 von kropotkin

Hi

I'm using Apache 2 and mod_perl2. And Apache::DBI 1.06.

Despite using $Apache::DBI::DEBUG=1 #or 2
in my startup.pl script I cannot see any output in my error_log. This is the
test I've seen for seeing if it is working.

However I think it is because without it my badly written DBI code which
attempts to close a database handle without closing a statement handle
opened on it generates an error but when I enable PerlModule Apache::DBI in
httpd.conf I no longer get this error strongly suggesting that Apache::DBI
is working as it intercepts and discards the disconnect call. But I want to
be sure. Can anyone tell me why I might not be seeing any output in my log
files?

with thanks

regards
Kropotkin
--
View this message in context: http://www.nabble.com/Apache%3A%3ADBI.-Is-it-running--tp1729 6505p17296505.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Apache::DBI. Is it running?

am 20.05.2008 20:14:00 von Perrin Harkins

On Sat, May 17, 2008 at 5:28 PM, kropotkin wrote:
> Despite using $Apache::DBI::DEBUG=1 #or 2
> in my startup.pl script I cannot see any output in my error_log. This is the
> test I've seen for seeing if it is working.

Make sure you set that AFTER you load Apache::DBI.

You can also look at the number of connections to your database.
There should be one for each apache child process.

If you can't tell from that, I suggest you just cut to the chase and
stick a couple of warnings into your Apache/DBI.pm.

- Perrin