this include_args is basically useless

This commit is contained in:
Jean-Paul Calderone 2019-03-07 13:30:54 -05:00
parent 5de4f4094e
commit 39694fcfde

View File

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