summaryrefslogtreecommitdiffstats
path: root/src/py-libs/plugins/root_cache.py
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-11-29 17:38:02 -0600
committerMichael E Brown <michael_e_brown@dell.com>2007-11-29 17:38:02 -0600
commit242729a2cf11a749b416e4a4d2dc78ffeb87e2d9 (patch)
treed7ffc55cb55f5981a24639654ca65fbf073fa98d /src/py-libs/plugins/root_cache.py
parent521025b767f54c75c55ea088d6ae305210cfbcaf (diff)
downloadmock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.tar.gz
mock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.tar.xz
mock-242729a2cf11a749b416e4a4d2dc78ffeb87e2d9.zip
use log.info() to tell about enabled caches rather than misusing state(). the state() method should be used to say what is happening.
Diffstat (limited to 'src/py-libs/plugins/root_cache.py')
-rw-r--r--src/py-libs/plugins/root_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py-libs/plugins/root_cache.py b/src/py-libs/plugins/root_cache.py
index 42061f4..8ed2492 100644
--- a/src/py-libs/plugins/root_cache.py
+++ b/src/py-libs/plugins/root_cache.py
@@ -58,13 +58,13 @@ class RootCache(object):
@traceLog(moduleLog)
def _rootCachePreInitHook(self):
+ moduleLog.info("enabled root cache")
mock.util.mkdirIfAbsent(self.rootSharedCachePath)
# lock so others dont accidentally use root cache while we operate on it.
if self.rootCacheLock is None:
self.rootCacheLock = open(os.path.join(self.rootSharedCachePath, "rootcache.lock"), "a+")
# check cache age:
- self.state("enabled root cache")
try:
statinfo = os.stat(self.rootCacheFile)
file_age_days = (time.time() - statinfo.st_ctime) / (60 * 60 * 24)