From f16dc328e0cced6325d84ebe780264ceb9e472b7 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 23 Jun 2014 21:12:13 +0000 Subject: Bug 1027718 - Bugzilla::Sentry fails with error if mod_perl is not installed on the system --- Bugzilla/Sentry.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Bugzilla/Sentry.pm') diff --git a/Bugzilla/Sentry.pm b/Bugzilla/Sentry.pm index d2994e78b..333cff9c3 100644 --- a/Bugzilla/Sentry.pm +++ b/Bugzilla/Sentry.pm @@ -16,8 +16,6 @@ our @EXPORT = qw( sentry_should_notify ); -use Apache2::Log; -use Apache2::SubProcess; use Carp; use Data::Dumper; use DateTime; @@ -240,6 +238,7 @@ sub sentry_handle_error { sub _write_to_error_log { my ($message, $is_error) = @_; if ($ENV{MOD_PERL}) { + require Apache2::Log; if ($is_error) { Apache2::ServerRec::log_error($message); } else { -- cgit v1.2.3-24-g4f1b