You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Per Einar Ellefsen <pe...@skynet.be> on 2002/05/20 09:45:49 UTC

Apache::DBI debugging (was: Re: Modifying @INC via startup.pl)

At 23:36 19.05.2002, Gregory Matthews wrote:
>># Initialize the database connections for each child
>>Apache::DBI->connect_on_init
>>("DBI:mysql:database=test;host=localhost", "user","password",
>>{ PrintError => 1, # warn() on errors
>>RaiseError => 0, # don't die on error
>>AutoCommit => 1, # commit executes immediately }
>>
>>I am also using the $Apache::DBI::DEBUG = 2; flag to ensure it is working 
>>properly.
>>
>>I am NOT seeing the entries in the error_log both when Apache::DBI 
>>initializes a connection and when it returns one from its cache.
>>
>>Shouldn't I be able to see a reference to the connection in my error_log 
>>file?
>>
>>I checked both my virtual host error_log file and the server error_log 
>>file. Nothing in either.

When/Where are you setting this flag? I don't have much experience with 
Apache::DBI, so I won't be able to help you much.

You could also try
         DBI->trace(1); #or any other level mentioned in the DBI docs.


-- 
Per Einar Ellefsen
per.einar@skynet.be