X-Git-Url: https://code.delx.au/bg-scripts/blobdiff_plain/a8d026613301bb315f8f66f50b1b35d8db996744..a407e8b413e333ac956dd54e600f7868ab1b57a8:/randombg.py diff --git a/randombg.py b/randombg.py index d069b49..3deac9c 100755 --- a/randombg.py +++ b/randombg.py @@ -41,16 +41,16 @@ class BaseFileList(object): 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') @@ -69,7 +69,7 @@ class BaseFileList(object): return True except Exception, e: - warning("Loading cache: %s" % e) + logging.warning("Loading cache: %s" % e) return False def scan_paths(self):