Patches for http://code.google.com/p/apachelog/issues/detail?id=1 and http://code...
authorhfuecks <hfuecks@2aa64f9d-4624-0410-9d16-255af7953928>
Wed, 18 Apr 2007 15:15:23 +0000 (15:15 +0000)
committerhfuecks <hfuecks@2aa64f9d-4624-0410-9d16-255af7953928>
Wed, 18 Apr 2007 15:15:23 +0000 (15:15 +0000)
apachelog.py

index b924d54500858931c8e337627beaadedc53ba61b..10f3e9e7c8794d6e6c5e1ab709367c76a95cab39 100755 (executable)
@@ -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):
         """