From: eldy <> Date: Sat, 6 Jan 2001 15:08:16 +0000 (+0000) Subject: Better management of corrupted log files. X-Git-Tag: AWSTATS_1_0~356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d69149c8dc3b4e27133356f857ca53e4c4eb428;p=thirdparty%2FAWStats.git Better management of corrupted log files. --- diff --git a/awstats.pl b/awstats.pl index 93ba16bb..09864f7f 100644 --- a/awstats.pl +++ b/awstats.pl @@ -1688,10 +1688,10 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = $line=$_; $_ =~ s/\n//; # Needed because IIS log file end with CRLF and perl read lines until LF $_ =~ s/\" / /g; $_ =~ s/ \"/ /g; $_ =~ s/\"$//; # Suppress " + if (/^$/) { next; } # ISS sometimes write blank lines, also possible with Apache log when editing log file. if ($LogFormat == 2) { if (/^#/) { next; } # ISS writes such comments, we forget line @felter=split(/ /,$_); - if ($felter[1] eq "") { next; } # ISS sometimes write blank lines $savetime=$felter[1]; @datep=split(/-/,$felter[0]); # YYYY-MM-DD # Change order of ISS parameters to be like Apache