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
This commit is contained in:
Dougal Matthews 2016-12-19 12:10:32 +00:00
parent 28f888bb91
commit 9d98e1ab9b

View File

@ -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: