~ntt-pf-lab/nova/openstack-qa-nova-876120

« back to all changes in this revision

Viewing changes to nova/exception.py

Update exception.wrap_exception so that all exceptions (not just Error and NovaException types) get logged correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
                    notifier.notify(publisher_id, temp_type, temp_level,
122
122
                                    payload)
123
123
 
124
 
                if (not isinstance(e, Error) and
125
 
                    not isinstance(e, NovaException)):
126
 
                    #exc_type, exc_value, exc_traceback = sys.exc_info()
127
 
                    LOG.exception(_('Uncaught exception'))
128
 
                    #logging.error(traceback.extract_stack(exc_traceback))
129
 
                    raise Error(str(e))
130
 
 
131
124
                # re-raise original exception since it may have been clobbered
132
125
                raise exc_info[0], exc_info[1], exc_info[2]
133
126