#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: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:

Merge pull request #563 from tahoe-lafs/2987.log_call_deferred

Add Eliot logging helper

Fixes: ticket:2987

Note: See TracTickets for help on using tickets.