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:
parent
3b667e48ff
commit
39bc3e624a
1 changed files with 3 additions and 0 deletions
|
@ -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])))
|
||||||
|
|
Loading…
Reference in a new issue