diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-11 02:47:35 -0400 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-11 02:47:35 -0400 |
| commit | 77258c8c5e8f94fbcb15fc4be83cf623ac414bd6 (patch) | |
| tree | aafbbd96f9ef443e3154a3f885f3932c0a6604e4 /nova/exception.py | |
| parent | 2222851017c5c34b1a9ea1d2855f49c45395843c (diff) | |
| parent | b8de5221368c4055fc593c6d0d7164f2be956924 (diff) | |
Changed shared_ip_group detail routing
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/exception.py b/nova/exception.py index 277033e0f..7680e534a 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -21,9 +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 +83,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 |
