diff --git a/ansible_mitogen/target.py b/ansible_mitogen/target.py index 20086cec..d6a44f4d 100644 --- a/ansible_mitogen/target.py +++ b/ansible_mitogen/target.py @@ -78,6 +78,7 @@ def get_file(context, path): Bytestring file data. """ if path not in _file_cache: + LOG.debug('target.get_file(): fetching %r from %r', path, context) _file_cache[path] = zlib.decompress( mitogen.service.call( context=context, @@ -88,6 +89,7 @@ def get_file(context, path): } ) ) + LOG.debug('target.get_file(): fetched %r from %r', path, context) return _file_cache[path] diff --git a/mitogen/service.py b/mitogen/service.py index 23848b24..9c33202c 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -341,6 +341,8 @@ class Pool(object): def call_async(context, handle, method, kwargs): + LOG.debug('service.call_async(%r, %r, %r, %r)', + context, handle, method, kwargs) pair = (method, kwargs) msg = mitogen.core.Message.pickled(pair, handle=handle) return context.send_async(msg)