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:
parent
28f888bb91
commit
9d98e1ab9b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user