From a3004cd5cfb2b4d06f7aadef8ddf6829302ea9aa Mon Sep 17 00:00:00 2001 From: Steve McLellan Date: Mon, 5 May 2014 10:06:43 -0500 Subject: [PATCH] Log unhandled exceptions during task execution Partially implements blueprint improve-engine-logging Change-Id: I65196d3216d1c35b7f1d53c1c1e0f0421ecc7c68 --- muranoapi/common/engine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/muranoapi/common/engine.py b/muranoapi/common/engine.py index 55b701a4..9445a5eb 100644 --- a/muranoapi/common/engine.py +++ b/muranoapi/common/engine.py @@ -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)