From: Laurent Destailleur Date: Sun, 30 Mar 2014 15:19:30 +0000 (+0200) Subject: Fix: #909 awstats_buildstaticpages.pl noisy debug output. X-Git-Tag: AWSTATS_7_4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1431a2b56050312b857488802de1c0a24110a8e6;p=thirdparty%2FAWStats.git Fix: #909 awstats_buildstaticpages.pl noisy debug output. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index ec7e34e4..820dcc87 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -16,6 +16,7 @@ Fixes: - Add debian patch 0007_russian_lang.patch. - Add debian patch 2001_awstatsprog_path.patch. - #921 Failure in the help text for geoip_generator.pl +- #909 awstats_buildstaticpages.pl noisy debug output. ***** 7.3 ***** diff --git a/tools/awstats_buildstaticpages.pl b/tools/awstats_buildstaticpages.pl index a50ce8da..8abd89b9 100755 --- a/tools/awstats_buildstaticpages.pl +++ b/tools/awstats_buildstaticpages.pl @@ -225,7 +225,7 @@ sub Parse_Config { if ( $param =~ /^LoadPlugin/ ) { push @PluginsToLoad, $value; next; } # If parameters was not found previously, defined variable with name of param to value - print $param."-".$value."\n"; + if ($Debug) { debug($param."-".$value); } $$param=$value; }