From b63d8c626ddcc134450c08f137a23a35dede0207 Mon Sep 17 00:00:00 2001 From: Greg Darke Date: Wed, 16 Jul 2008 17:04:08 +1000 Subject: [PATCH] Cleaned up the logging code (again) --- randombg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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): -- 2.39.2