summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Sentry.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Sentry.pm')
-rw-r--r--Bugzilla/Sentry.pm3
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 {