Add the method_name to the catchall warning when using callback plugins

Without this you have no clue to where the exception is occuring.
This commit is contained in:
Dag Wieers 2016-04-01 11:39:54 +02:00
parent 837f3dd24d
commit 0d4f627654

View file

@ -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)))