mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-28 16:58:53 +00:00
Replaced fixed arg with dynamic args in log_call_deferred
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
492bcbbd12
commit
27c8e62cf6
@ -324,8 +324,8 @@ def log_call_deferred(action_type):
|
||||
def logged_f(*a, **kw):
|
||||
# Use the action's context method to avoid ending the action when
|
||||
# the `with` block ends.
|
||||
args = bytes_to_unicode(True, kw['arguments'])
|
||||
with start_action(action_type=action_type, arguments=args).context():
|
||||
args = {k: bytes_to_unicode(True, kw[k]) for k in kw}
|
||||
with start_action(action_type=action_type, **args).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