summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-04 00:23:35 -0500
committerTodd Willey <todd@ansolabs.com>2011-01-04 00:23:35 -0500
commitc7305af78049f94dedcbb55480b91a3c6d843b9f (patch)
treeb8c0305cd39408f825270f0c253c7f487ee40727 /nova/exception.py
parentdd1e36b9690a2c2de18c565c496b25295a13d0aa (diff)
downloadnova-c7305af78049f94dedcbb55480b91a3c6d843b9f.tar.gz
nova-c7305af78049f94dedcbb55480b91a3c6d843b9f.tar.xz
nova-c7305af78049f94dedcbb55480b91a3c6d843b9f.zip
Apply logging changes as a giant patch to work around the cloudpipe delete + add issue in the original patch.
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 277033e0f..7c6675e62 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -21,10 +21,8 @@ Nova base exception handling, including decorator for re-raising
Nova-type exceptions. SHOULD include dedicated exception logging.
"""
-import logging
-import sys
-import traceback
-
+from nova import log as logging
+LOG = logging.getLogger('nova.exception')
class ProcessExecutionError(IOError):
@@ -84,7 +82,7 @@ def wrap_exception(f):
except Exception, e:
if not isinstance(e, Error):
#exc_type, exc_value, exc_traceback = sys.exc_info()
- logging.exception(_('Uncaught exception'))
+ LOG.exception(_('Uncaught exception'))
#logging.error(traceback.extract_stack(exc_traceback))
raise Error(str(e))
raise