Richard van der Hoff f40c2db05a Stop preserve_fn leaking context into the reactor
Fix a bug in ``logcontext.preserve_fn`` which made it leak context into the
reactor, and add a test for it.

Also, get rid of ``logcontext.reset_context_after_deferred``, which tried to do
the same thing but had its own, different, set of bugs.
2017-03-18 00:07:43 +00:00
..
2017-01-17 13:22:19 +00:00
2016-02-19 15:34:38 +00:00
2017-01-17 13:22:19 +00:00
2016-06-03 11:26:52 +01:00
2017-02-14 13:39:41 +00:00
2016-02-19 15:34:38 +00:00
2016-04-06 10:12:30 +01:00
2016-01-26 13:52:29 +00:00
2016-12-09 16:48:48 +00:00