diff options
| author | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-01-14 04:39:35 +0900 |
|---|---|---|
| committer | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-01-14 04:39:35 +0900 |
| commit | 6bfcd0e63f247553207dcbfe2a3ad0d1403eec5a (patch) | |
| tree | 936e1a9c175fba12c445f4ac17897793af3efb80 /nova/exception.py | |
| parent | ea28b3117b02bcfd26e4017e850313cf5272d354 (diff) | |
| parent | d7373358443bb64f72b65ee18e35b8d90518f011 (diff) | |
Fixed based on the comments from code review. Merged to trunk rev 561
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 |
