Fix py3 logging propagation bug