From 3ea1b7dd6c6b4793142d97951a45c53933265381 Mon Sep 17 00:00:00 2001 From: Roman Vasilets Date: Tue, 30 Aug 2016 18:41:52 +0300 Subject: [PATCH] Improve debug logging level in Engine Change-Id: I0ebb4883fef4c98ef2c65a0b48c4104a7e216b4f --- rally/task/engine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rally/task/engine.py b/rally/task/engine.py index 7cd104a91d..db7dabc5b1 100644 --- a/rally/task/engine.py +++ b/rally/task/engine.py @@ -291,9 +291,10 @@ class TaskEngine(object): self._validate_config_syntax(self.config) self._validate_config_semantic(self.config) except Exception as e: + exception_info = json.dumps(traceback.format_exc(), indent=2) self.task.set_failed(type(e).__name__, - str(e), - json.dumps(traceback.format_exc())) + str(e), exception_info) + LOG.debug(exception_info) raise exceptions.InvalidTaskException(str(e)) def _get_runner(self, config): @@ -351,6 +352,7 @@ class TaskEngine(object): runner_obj.run(workload.name, context_obj, workload.args) except Exception as e: + LOG.debug(traceback.format_exc()) LOG.exception(e) if objects.Task.get_status(