Merge "Log unhandled exceptions during task execution"

This commit is contained in:
Jenkins 2014-05-06 13:00:23 +00:00 committed by Gerrit Code Review
commit 915c5983fc

View File

@ -71,6 +71,8 @@ class TaskProcessingEndpoint(object):
except Exception as e:
# TODO(gokrokve) report error here
# TODO(slagun) code below needs complete rewrite and redesign
LOG.exception("Error during task execution for tenant %s",
env.tenant_id)
msg_env = Environment(task['model']['Objects']['?']['id'])
reporter = status_reporter.StatusReporter()
reporter.initialize(msg_env)