Skip to content

Commit

Permalink
Bug 1027718 - Bugzilla::Sentry fails with error if mod_perl is not in…
Browse files Browse the repository at this point in the history
…stalled on the system
  • Loading branch information
David Lawrence committed Jun 23, 2014
1 parent d7b36fd commit f16dc32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Bugzilla/Sentry.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ our @EXPORT = qw(
sentry_should_notify
);

use Apache2::Log;
use Apache2::SubProcess;
use Carp;
use Data::Dumper;
use DateTime;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f16dc32

Please sign in to comment.