From 02f80a35a31ec1be979566e5e3d25a151732969b Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Fri, 25 Nov 2016 02:17:41 +0100 Subject: [PATCH] [apache_logparser] carefully import unavailable module 'File::Tail::Multi this will allow travis checks again --- plugins/apache/apache_vhosts/apache_logparser | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/apache/apache_vhosts/apache_logparser b/plugins/apache/apache_vhosts/apache_logparser index 434ea0f9..22456298 100644 --- a/plugins/apache/apache_vhosts/apache_logparser +++ b/plugins/apache/apache_vhosts/apache_logparser @@ -45,7 +45,9 @@ local $debug=0; my $scan_interval=5; # minutes # perl modules -use File::Tail::Multi; +# "File:Tail:Multi" disappeared from CPAN (somewhen in 2016) - thus it needs +# to be imported carefully (for travis checks). +eval 'use File::Tail::Multi; 1;' or die 'Please install File::Tail::Multi'; use Storable qw(freeze thaw); use List::Util qw(min max); use IPC::ShareLite ':lock';