Override core warn() with server logging
so site-specific configuration is respected.
use strict;
use warnings;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
use PLP;
require Apache2::RequestRec;
require Apache2::RequestUtil;
require Apache2::RequestIO;
+ require Apache2::Log;
Apache2::Const->import(-compile => qw(
HTTP_NOT_FOUND HTTP_FORBIDDEN OK
));
$PLP::print = 'PLP::Backend::Apache::print';
$PLP::read = \&read;
+ *CORE::GLOBAL::warn = $SIG{__WARN__} = \&Apache2::ServerRec::warn if MP2;
$ENV{PLP_FILENAME} = my $filename = $r->filename;