summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnup Kumar <allamsetty.anup@gmail.com>2016-07-05 21:04:27 +0200
committerDylan Hardison <dylan@mozilla.com>2016-07-05 21:04:27 +0200
commit08931ab607d0e1803c4756e371cbf715520650c8 (patch)
tree7d5159c6aeca34f033e170bad71988cd6a80b83b
parent9a15297a823443b19661211293bb79e7f42a44e3 (diff)
downloadbugzilla-08931ab607d0e1803c4756e371cbf715520650c8.tar.gz
bugzilla-08931ab607d0e1803c4756e371cbf715520650c8.tar.xz
Bug 1237326 - Apache2::Log should only be loaded if we're running under mod_perl
-rw-r--r--extensions/Push/lib/Logger.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Push/lib/Logger.pm b/extensions/Push/lib/Logger.pm
index 68cec1e69..9824f3476 100644
--- a/extensions/Push/lib/Logger.pm
+++ b/extensions/Push/lib/Logger.pm
@@ -10,7 +10,6 @@ package Bugzilla::Extension::Push::Logger;
use strict;
use warnings;
-use Apache2::Log;
use Bugzilla::Extension::Push::Constants;
use Bugzilla::Extension::Push::LogEntry;
@@ -31,6 +30,7 @@ sub debugging {
}
sub _log_it {
+ require Apache2::Log;
my ($self, $method, $message) = @_;
return if $method eq 'DEBUG' && !$self->debugging;
chomp $message;