I couldn't get the debug statements to work, so I had the debug lines in add_cleanup and set_cleanup write to the server error log instead:
[Thu Sep 25 22:51:04 2003] [info] mod_perl: using Perl HASH_SEED: 3100308465 [Thu Sep 25 22:51:10 2003] [info] 22 Apache:: modules loaded [Thu Sep 25 22:51:10 2003] [info] 5 APR:: modules loaded [Thu Sep 25 22:51:10 2003] [info] base server + 11 vhosts ready to run tests [Thu Sep 25 22:51:24 2003] [info] mod_perl: using Perl HASH_SEED: 792137735 [ .. ] [Thu Sep 25 22:51:34 2003] [warn] [client 127.0.0.1] setting cleanup note [Thu Sep 25 22:51:34 2003] [warn] [client 127.0.0.1] adding cleanup note
Hmm, but they always write to the error_log. You mean:
use Apache::TestTrace; debug "foo";
on the server side doesn't work for you when running
t/TEST -trace=debug apr/pool
?
The output I was after looks like this:
==> MP_DEBUG: DESTROY pool 0x8a66b08
==> MP_DEBUG: DESTROY pool 0x8a64b00
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a66b08
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a64b00
==> MP_DEBUG: new pool 0x8a64b00
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8111a60
==> MP_DEBUG: new pool 0x8a66b08
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a64b00
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8111a60
==> MP_DEBUG: DESTROY pool 0x8a64b00
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a66b08
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a66b08
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8a64b00
==> MP_DEBUG: skipping DESTROY, this object is not eligible to destroy pool 0x8aca8d0
it should have ended up in the error_log and telling you the exact life story of the pools birth and death ;)
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
