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-03-15 16:01:01 +00:00
2016-08-24 11:58:40 +01:00
2017-01-17 13:22:19 +00:00
2017-03-16 11:54:26 +00:00
2017-03-16 11:54:26 +00:00
2017-02-21 13:43:36 +00:00
2017-01-17 14:32:53 +00:00
2017-03-16 11:54:26 +00:00
2017-02-02 10:53:36 +00:00
2016-08-08 16:40:39 +01:00