From 9d98e1ab9b814c76a969770adefa6edd81c2141e Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Mon, 19 Dec 2016 12:10:32 +0000 Subject: [PATCH] Use LOG.exception when adding an OpenStack action fails At the moment the error will just show the name of the exception, the full traceback is much more useful when you need to debug it. Change-Id: I0d20384bc4271423bc1b57d7a083478c1ff16e75 --- mistral/actions/openstack/action_generator/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mistral/actions/openstack/action_generator/base.py b/mistral/actions/openstack/action_generator/base.py index 0995a017..2d3d7022 100644 --- a/mistral/actions/openstack/action_generator/base.py +++ b/mistral/actions/openstack/action_generator/base.py @@ -89,9 +89,9 @@ class OpenStackActionGenerator(action_generator.ActionGenerator): try: client_method = clazz.get_fake_client_method() - except Exception as e: - LOG.warning("Failed to create action: %s.%s %s" % - (cls.action_namespace, action_name, e)) + except Exception: + LOG.exception("Failed to create action: %s.%s" % + (cls.action_namespace, action_name)) client_method = None if client_method: