issue #195: add extra logging around FileService and get_file().
This commit is contained in:
parent
46a311165e
commit
f06ae05734
|
@ -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]
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue