]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1237326 - Apache2::Log should only be loaded if we're running under mod_perl
authorAnup Kumar <allamsetty.anup@gmail.com>
Tue, 5 Jul 2016 19:04:27 +0000 (15:04 -0400)
committerDylan Hardison <dylan@mozilla.com>
Tue, 5 Jul 2016 19:04:27 +0000 (15:04 -0400)
extensions/Push/lib/Logger.pm

index 68cec1e690a727948e7debac852efe1f8917e285..9824f3476f434be3c2112904d514f5164b1b0da9 100644 (file)
@@ -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;