From a16e0c831fdfeb541e392a2537b4eb24c3c2dcb0 Mon Sep 17 00:00:00 2001 From: hfuecks Date: Wed, 18 Apr 2007 15:15:23 +0000 Subject: [PATCH] Patches for http://code.google.com/p/apachelog/issues/detail?id=1 and http://code.google.com/p/apachelog/issues/detail?id=2 --- apachelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): """ -- 2.26.2