Commit 7017d835 authored by Christian Ruppert's avatar Christian Ruppert Committed by Max Kanat-Alexander

Bug 643890: Use Apache's ErrorLog when using mod_perl/vhosts

r=mkanat, a=mkanat
parent a0aab8f3
...@@ -35,6 +35,7 @@ use lib Bugzilla::Constants::bz_locations()->{'ext_libpath'}; ...@@ -35,6 +35,7 @@ use lib Bugzilla::Constants::bz_locations()->{'ext_libpath'};
# startup, so we always specify () after using any module in this # startup, so we always specify () after using any module in this
# file. # file.
use Apache2::Log ();
use Apache2::ServerUtil; use Apache2::ServerUtil;
use ModPerl::RegistryLoader (); use ModPerl::RegistryLoader ();
use File::Basename (); use File::Basename ();
...@@ -49,6 +50,10 @@ use Bugzilla::Extension (); ...@@ -49,6 +50,10 @@ use Bugzilla::Extension ();
use Bugzilla::Install::Requirements (); use Bugzilla::Install::Requirements ();
use Bugzilla::Util (); 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. # Pre-compile the CGI.pm methods that we're going to use.
Bugzilla::CGI->compile(qw(:cgi :push)); Bugzilla::CGI->compile(qw(:cgi :push));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment