diff options
author | David Lawrence <dkl@redhat.com> | 2014-06-23 23:12:13 +0200 |
---|---|---|
committer | David Lawrence <dkl@redhat.com> | 2014-06-23 23:12:13 +0200 |
commit | f16dc328e0cced6325d84ebe780264ceb9e472b7 (patch) | |
tree | 6574ed9079faa5f28de894f81846a787f7570e18 /Bugzilla | |
parent | d7b36fd116b0d0e15b591ff406410dc4a9fdc0e5 (diff) | |
download | bugzilla-f16dc328e0cced6325d84ebe780264ceb9e472b7.tar.gz bugzilla-f16dc328e0cced6325d84ebe780264ceb9e472b7.tar.xz |
Bug 1027718 - Bugzilla::Sentry fails with error if mod_perl is not installed on the system
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Sentry.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |