mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-20 16:51:00 +00:00
let it not return a Deferred
This commit is contained in:
parent
9802ee4e19
commit
5de4f4094e
@ -81,6 +81,7 @@ from twisted.logger import (
|
||||
)
|
||||
from twisted.internet.defer import (
|
||||
inlineCallbacks,
|
||||
maybeDeferred,
|
||||
)
|
||||
from twisted.application.service import Service
|
||||
|
||||
@ -486,6 +487,7 @@ def log_call_deferred(action_type, include_args=False):
|
||||
with start_action(action_type=action_type, **action_kw).context():
|
||||
# Use addActionFinish so that the action finishes when the
|
||||
# Deferred fires.
|
||||
return DeferredContext(f(*a, **kw)).addActionFinish()
|
||||
d = maybeDeferred(f, *a, **kw)
|
||||
return DeferredContext(d).addActionFinish()
|
||||
return logged_f
|
||||
return decorate_log_call_deferred
|
||||
|
Loading…
x
Reference in New Issue
Block a user