Show where plugins were loaded in vvv/vvvv (#15757)

Make the plugin loading info displayed by callback plugins
match.

In debug mode (ANSIBLE_DEBUG=1 env), log all requests for
plugins including already cached plugins and class_only
requests.
This commit is contained in:
Adrian Likins 2016-08-23 11:54:14 -04:00 committed by Brian Coca
commit 71118b2720
2 changed files with 26 additions and 4 deletions

View file

@ -68,7 +68,7 @@ class CallbackBase:
name = getattr(self, 'CALLBACK_NAME', 'unnamed')
ctype = getattr(self, 'CALLBACK_TYPE', 'old')
version = getattr(self, 'CALLBACK_VERSION', '1.0')
self._display.vvvv('Loaded callback %s of type %s, v%s' % (name, ctype, version))
self._display.vvvv('Loading callback plugin %s of type %s, v%s from %s' % (name, ctype, version, __file__))
''' helper for callbacks, so they don't all have to include deepcopy '''
_copy_result = deepcopy