Oops, mark Resolve._cache_dirty not self._cache_dirty to actually save new data.
authorW. Trevor King <wking@drexel.edu>
Wed, 29 Feb 2012 17:29:33 +0000 (12:29 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 29 Feb 2012 17:29:33 +0000 (12:29 -0500)
apachelog/resolve.py

index 3a5a7c61f2c28c4c09ac62086e1e13bb923fb972..8bb915ecd2b61df4e949c027c6e87f6f92012968 100644 (file)
@@ -79,7 +79,7 @@ class Resolver (object):
 
     def resolve(self, ip):
         if ip not in self.IP:
-            self._cache_dirty = True
+            Resolver._cache_dirty = True
             try:
                 self.IP[ip] = _socket.gethostbyaddr(ip)
             except _socket.herror as e: