Subject: | DBI profile environment var should be UPPER CASE |
In your POD, the environment variable to enable DBI profiling should
be in UPPER CASE ("DBI_PROFILE"), not Mixed Case ("DBI_Profile").
Patch attached.
Subject: | cap-dbiprofile-env-var-case.patch |
diff -ru CGI-Application-Plugin-DBIProfile-0.03.orig/DBIProfile.pm CGI-Application-Plugin-DBIProfile-0.03/DBIProfile.pm
--- CGI-Application-Plugin-DBIProfile-0.03.orig/DBIProfile.pm 2007-09-28 17:57:19.000000000 -0700
+++ CGI-Application-Plugin-DBIProfile-0.03/DBIProfile.pm 2007-09-29 10:41:34.000000000 -0700
@@ -388,17 +388,17 @@
=head1 CONFIGURATION
-To enable, set the DBI_Profile environment variables. For example, in apache:
+To enable, set the DBI_PROFILE environment variables. For example, in apache:
- SetVar DBI_Profile 2/CGI::Application::Plugin::DBIProfile::Driver
+ SetVar DBI_PROFILE 2/CGI::Application::Plugin::DBIProfile::Driver
SetVar CAP_DBIPROFILE_EXEC 1
Or for mod_perl:
- PerlSetVar DBI_Profile 2/CGI::Application::Plugin::DBIProfile::Driver
+ PerlSetVar DBI_PROFILE 2/CGI::Application::Plugin::DBIProfile::Driver
PerlSetVar CAP_DBIPROFILE_EXEC 1
-If you disable it, be sure to unset the DBI_Profile env var, as it will continue to accumulate stats regardless of the setting of CAP_DBIPROFILE_EXEC, you just won't see them.
+If you disable it, be sure to unset the DBI_PROFILE env var, as it will continue to accumulate stats regardless of the setting of CAP_DBIPROFILE_EXEC, you just won't see them.
=head2 MODES OF OPERATION