log: Use writeln!() instead of write!()

This was accidentally left out of the recent logging improvements.
auto merge of #13982 : alexcrichton/rust/more-logging, r=kballard,nikomatsakis

This was accidentally left out of the recent logging improvements.