summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authormasumotok <masumotok@nttdata.co.jp>2011-01-14 03:02:17 +0900
committermasumotok <masumotok@nttdata.co.jp>2011-01-14 03:02:17 +0900
commit41a9ad538cc70d4f8f39eb51c1d137917967b04c (patch)
treed5cb655be40834c03f6c537f919c87bc7401ceb3 /nova/exception.py
parent5afd9848ad09414c00062ceebdad45bca0604888 (diff)
parent1e746ce1ef027aa2549a8fba2904f3797eff0702 (diff)
downloadnova-41a9ad538cc70d4f8f39eb51c1d137917967b04c.tar.gz
nova-41a9ad538cc70d4f8f39eb51c1d137917967b04c.tar.xz
nova-41a9ad538cc70d4f8f39eb51c1d137917967b04c.zip
Get reviewed and fixed based on comments.
Merged latest version.
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py7
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