From 0d4f62765414cb2c51a8644103bd2a659d3ae1ef Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 1 Apr 2016 11:39:54 +0200 Subject: [PATCH] Add the method_name to the catchall warning when using callback plugins Without this you have no clue to where the exception is occuring. --- lib/ansible/executor/task_queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 62ec8295e77..1497f6a1920 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -319,4 +319,4 @@ class TaskQueueManager: method(*args, **kwargs) except Exception as e: #TODO: add config toggle to make this fatal or not? - display.warning(u"Failure when attempting to use callback plugin (%s): %s" % (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)))