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
..
2016-01-07 04:26:29 +00:00
2017-03-16 11:54:26 +00:00
2016-11-16 14:47:52 +00:00
2016-12-07 09:58:33 +00:00
2017-01-30 17:11:24 +00:00
2017-03-16 11:54:26 +00:00
2017-03-16 11:54:26 +00:00
2017-03-16 11:54:26 +00:00
2017-02-02 10:53:36 +00:00
2017-03-13 11:53:26 +00:00
2017-02-20 15:02:01 +00:00
2017-03-16 13:04:07 +00:00
2016-11-16 14:47:52 +00:00