From af73fa7d2354208f85cec98aad821f1c50a55645 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Thu, 6 Dec 2007 02:34:20 -0600 Subject: fixup logging calls. --- py/mock/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/mock/util.py') 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 -- cgit