mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
this include_args is basically useless
This commit is contained in:
parent
5de4f4094e
commit
39694fcfde
@ -472,19 +472,16 @@ class _DestinationParser(object):
|
||||
|
||||
_parse_destination_description = _DestinationParser().parse
|
||||
|
||||
def log_call_deferred(action_type, include_args=False):
|
||||
def log_call_deferred(action_type):
|
||||
"""
|
||||
Like ``eliot.log_call`` but for functions which return ``Deferred``.
|
||||
"""
|
||||
def decorate_log_call_deferred(f):
|
||||
@wraps(f)
|
||||
def logged_f(*a, **kw):
|
||||
action_kw = {}
|
||||
if include_args:
|
||||
action_kw = dict(a=a, kw=kw)
|
||||
# Use the action's context method to avoid ending the action when
|
||||
# the `with` block ends.
|
||||
with start_action(action_type=action_type, **action_kw).context():
|
||||
with start_action(action_type=action_type).context():
|
||||
# Use addActionFinish so that the action finishes when the
|
||||
# Deferred fires.
|
||||
d = maybeDeferred(f, *a, **kw)
|
||||
|
Loading…
Reference in New Issue
Block a user