From 39bc3e624aa65853a064a18b774b951ef0e538f7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 1 Apr 2016 15:00:16 -0400 Subject: [PATCH] show callback exception on debug --- lib/ansible/executor/task_queue_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 1497f6a192..c2592f0f34 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -320,3 +320,6 @@ class TaskQueueManager: except Exception as e: #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))) + from traceback import format_tb + from sys import exc_info + display.debug('Callback Exception: \n' + ' '.join(format_tb(exc_info()[2])))