aboutsummaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-07-19 14:44:58 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-07-19 14:44:58 -0700
commit7017d8356ab4adc852264b9f4ab8be84ae2908c2 (patch)
tree3191ddfa7c6f898baa4e2d24346badecceb2a0ce /mod_perl.pl
parenta0aab8f387104acede6b3361d0db376d489166dc (diff)
downloadbugs-7017d8356ab4adc852264b9f4ab8be84ae2908c2.tar
bugs-7017d8356ab4adc852264b9f4ab8be84ae2908c2.tar.gz
bugs-7017d8356ab4adc852264b9f4ab8be84ae2908c2.tar.bz2
bugs-7017d8356ab4adc852264b9f4ab8be84ae2908c2.tar.xz
bugs-7017d8356ab4adc852264b9f4ab8be84ae2908c2.zip
Bug 643890: Use Apache's ErrorLog when using mod_perl/vhosts
r=mkanat, a=mkanat
Diffstat (limited to 'mod_perl.pl')
-rw-r--r--mod_perl.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod_perl.pl b/mod_perl.pl
index 54f14a8fa..460e6216b 100644
--- a/mod_perl.pl
+++ b/mod_perl.pl
@@ -35,6 +35,7 @@ use lib Bugzilla::Constants::bz_locations()->{'ext_libpath'};
# startup, so we always specify () after using any module in this
# file.
+use Apache2::Log ();
use Apache2::ServerUtil;
use ModPerl::RegistryLoader ();
use File::Basename ();
@@ -49,6 +50,10 @@ use Bugzilla::Extension ();
use Bugzilla::Install::Requirements ();
use Bugzilla::Util ();
+# Make warnings go to the virtual host's log and not the main
+# server log.
+BEGIN { *CORE::GLOBAL::warn = \&Apache2::ServerRec::warn; }
+
# Pre-compile the CGI.pm methods that we're going to use.
Bugzilla::CGI->compile(qw(:cgi :push));