def store_cache(self, filename):
try:
- debug("Attempting to store cache")
+ logging.debug("Attempting to store cache")
fd = open(filename, 'wb')
pickle.dump(obj = self, file = fd, protocol = 2)
- debug("Cache successfully stored")
+ logging.debug("Cache successfully stored")
except Exception, e:
warning("Storing cache: %s" % e)
def load_cache(self, filename):
try:
- debug("Attempting to load cache from: %s" % filename)
+ logging.debug("Attempting to load cache from: %s" % filename)
self.paths.sort()
fd = open(filename, 'rb')
return True
except Exception, e:
- warning("Loading cache: %s" % e)
+ logging.warning("Loading cache: %s" % e)
return False
def scan_paths(self):