diff options
author | masumotok <masumotok@nttdata.co.jp> | 2011-01-14 03:02:17 +0900 |
---|---|---|
committer | masumotok <masumotok@nttdata.co.jp> | 2011-01-14 03:02:17 +0900 |
commit | 41a9ad538cc70d4f8f39eb51c1d137917967b04c (patch) | |
tree | d5cb655be40834c03f6c537f919c87bc7401ceb3 /nova/exception.py | |
parent | 5afd9848ad09414c00062ceebdad45bca0604888 (diff) | |
parent | 1e746ce1ef027aa2549a8fba2904f3797eff0702 (diff) | |
download | nova-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.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 |