summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-12-06 02:34:20 -0600
committerMichael E Brown <michael_e_brown@dell.com>2007-12-06 02:34:20 -0600
commitaf73fa7d2354208f85cec98aad821f1c50a55645 (patch)
treefdb90cdeb1599ec7827023617232111be2d58d95
parentafeb84213c6f965850417c0f573e862472cbfc74 (diff)
downloadmock-af73fa7d2354208f85cec98aad821f1c50a55645.tar.gz
mock-af73fa7d2354208f85cec98aad821f1c50a55645.tar.xz
mock-af73fa7d2354208f85cec98aad821f1c50a55645.zip
fixup logging calls.
-rw-r--r--py/mock/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mock/util.py b/py/mock/util.py
index 6bd91cb..4710a4b 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -37,7 +37,7 @@ def mkdirIfAbsent(*args):
getLog().debug("creating dir: %s" % dirName)
os.makedirs(dirName)
except OSError, e:
- log.exception("Could not create dir %s. Error: %s" % (dirName, e))
+ getLog().exception("Could not create dir %s. Error: %s" % (dirName, e))
raise mock.exception.Error, "Could not create dir %s. Error: %s" % (dirName, e)
decorate(traceLog())
@@ -77,7 +77,7 @@ def orphansKill(rootToKill):
try:
root = os.readlink("/proc/%s/root" % fn)
if root == rootToKill:
- log.warning("Process ID %s still running in chroot. Killing..." % fn)
+ getLog().warning("Process ID %s still running in chroot. Killing..." % fn)
os.kill(int(fn, 10), 15)
except OSError, e:
pass