diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2007-12-06 02:34:20 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-06 02:34:20 -0600 |
commit | af73fa7d2354208f85cec98aad821f1c50a55645 (patch) | |
tree | fdb90cdeb1599ec7827023617232111be2d58d95 /py/mock/util.py | |
parent | afeb84213c6f965850417c0f573e862472cbfc74 (diff) | |
download | mock-af73fa7d2354208f85cec98aad821f1c50a55645.tar.gz mock-af73fa7d2354208f85cec98aad821f1c50a55645.tar.xz mock-af73fa7d2354208f85cec98aad821f1c50a55645.zip |
fixup logging calls.
Diffstat (limited to 'py/mock/util.py')
-rw-r--r-- | py/mock/util.py | 4 |
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 |