From: hfuecks Date: Wed, 18 Apr 2007 15:15:23 +0000 (+0000) Subject: Patches for http://code.google.com/p/apachelog/issues/detail?id=1 and http://code... X-Git-Tag: 1.1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a16e0c831fdfeb541e392a2537b4eb24c3c2dcb0;p=apachelog.git Patches for code.google.com/p/apachelog/issues/detail?id=1 and http://code.google.com/p/apachelog/issues/detail?id=2 --- diff --git a/apachelog.py b/apachelog.py index b924d54..10f3e9e 100755 --- a/apachelog.py +++ b/apachelog.py @@ -134,7 +134,7 @@ class parser: findpercent = re.compile('^%.*t$') lstripquotes = re.compile(r'^\\"') rstripquotes = re.compile(r'\\"$') - + self._names = [] for element in format.split(' '): @@ -185,7 +185,7 @@ class parser: data[k] = v return data - raise ApacheLogParserError("Unable to parse: %s" % line) + raise ApacheLogParserError("Unable to parse: %s with the %s regular expression" % ( line, self._pattern ) ) def alias(self, name): """