Fix logging after mozilla/rust#10006