Opened at 2019-03-07T18:04:26Z
Closed at 2019-03-08T12:46:40Z
#2987 closed defect (fixed)
Add a Deferred-supporting `log_call`-alike to ease logging changes
Reported by: | exarkun | Owned by: | GitHub <noreply@…> |
---|---|---|---|
Priority: | normal | Milestone: | undecided |
Component: | unknown | Version: | 1.12.1 |
Keywords: | review-needed | Cc: | |
Launchpad Bug: |
Description
Eliot has a decorator, log_call, that starts an action encompassing the decorated function. This is nice mostly because it avoids the extra indentation. However, log_call doesn't know what to do with a function that returns a Deferred.
Add a similar decorator but with support for Deferred.
Change History (3)
comment:1 Changed at 2019-03-07T18:09:19Z by exarkun
- Summary changed from Add a Deferred-support `log_call`-alike to ease logging changes to Add a Deferred-supporting `log_call`-alike to ease logging changes
comment:2 Changed at 2019-03-07T18:31:43Z by exarkun
- Keywords review-needed added
comment:3 Changed at 2019-03-08T12:46:40Z by GitHub <noreply@…>
- Owner set to GitHub <noreply@…>
- Resolution set to fixed
- Status changed from new to closed
In e424270/trunk:
Note: See
TracTickets for help on using
tickets.
https://github.com/tahoe-lafs/tahoe-lafs/pull/563