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

This was accidentally left out of the recent logging improvements.