Skip to content

Commit

Permalink
Use LOG.exception in place of sys.exc_info.
Browse files Browse the repository at this point in the history
Change-Id: I1c3ee12796388a8cd910529dcc743180bb975b49
Fixes: bug #1224570
  • Loading branch information
Robert Myers committed Sep 12, 2013
1 parent b99c9bf commit 396e551
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions trove/taskmanager/api.py
Expand Up @@ -57,10 +57,8 @@ def func():
try:
method(self.context, **kwargs)
except Exception as ex:
type_, value, tb = sys.exc_info()
LOG.error("Error running async task:")
LOG.error((traceback.format_exception(type_, value, tb)))
raise type_(*value.args), None, tb
LOG.exception("Error running async task")
raise

get_event_spawer()(0, func)

Expand Down

0 comments on commit 396e551

Please sign in to comment.