From: Frederic Marchal Date: Thu, 3 Jan 2013 07:10:31 +0000 (+0100) Subject: Don't ignore lines starting with a space in access.log X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9065c2f4b13968ab061764c5c622a0f16b0ff5e6;p=thirdparty%2Fsarg.git Don't ignore lines starting with a space in access.log Sarg was ignoring any access.log line starting with a space character. I see no reasons for this limitation. Therefore, I simply removed it. Any restriction on the processed lines should be placed in the specific format engine that requires it. --- diff --git a/readlog.c b/readlog.c index b91b239..33be666 100644 --- a/readlog.c +++ b/readlog.c @@ -47,8 +47,6 @@ enum ExcludeReasonEnum ER_IncompleteQuery, //! Log file turned over. ER_LogfileTurnedOver, - //! Line begins with a space. - ER_BeginWithSpace, //! Excluded by exclude_string from sarg.conf. ER_ExcludeString, //! Unknown input log file format. @@ -271,10 +269,6 @@ static void ReadOneLogFile(struct ReadLogDataStruct *Filter,const char *arq) excluded_count[ER_LogfileTurnedOver]++; continue; } - if(linebuf[0] == ' ') { - excluded_count[ER_BeginWithSpace]++; - continue; - } // exclude_string if(ExcludeString[0] != '\0') { @@ -784,7 +778,6 @@ int ReadLogFile(struct ReadLogDataStruct *Filter) DisplayExcludeCount(_("User name too long"),ER_UserNameTooLong); DisplayExcludeCount(_("Squid logged an incomplete query received from the client"),ER_IncompleteQuery); DisplayExcludeCount(_("Log file turned over"),ER_LogfileTurnedOver); - DisplayExcludeCount(_("Line begins with a space"),ER_BeginWithSpace); DisplayExcludeCount(_("Excluded by \"exclude_string\" in sarg.conf"),ER_ExcludeString); DisplayExcludeCount(_("Unknown input log file format"),ER_UnknownFormat); DisplayExcludeCount(_("Line ignored by the input log format"),ER_FormatData);