1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

show callback exception on debug

This commit is contained in:
Brian Coca 2016-04-01 15:00:16 -04:00
parent 3b667e48ff
commit 39bc3e624a

View file

@ -320,3 +320,6 @@ class TaskQueueManager:
except Exception as e: except Exception as e:
#TODO: add config toggle to make this fatal or not? #TODO: add config toggle to make this fatal or not?
display.warning(u"Failure using method (%s) in callback plugin (%s): %s" % (to_unicode(method_name), to_unicode(callback_plugin), to_unicode(e))) display.warning(u"Failure using method (%s) in callback plugin (%s): %s" % (to_unicode(method_name), to_unicode(callback_plugin), to_unicode(e)))
from traceback import format_tb
from sys import exc_info
display.debug('Callback Exception: \n' + ' '.join(format_tb(exc_info()[2])))