mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 19:43:43 +00:00
auto merge of #9609 : alexcrichton/rust/fix-logging-newline, r=catamorphism
Forgot to do this when I was refactoring logging :(
This commit is contained in:
commit
0fd8cb07c1
@ -181,7 +181,7 @@ pub struct StdErrLogger;
|
||||
impl Logger for StdErrLogger {
|
||||
fn log(&mut self, args: &fmt::Arguments) {
|
||||
if should_log_console() {
|
||||
fmt::write(self as &mut rt::io::Writer, args);
|
||||
fmt::writeln(self as &mut rt::io::Writer, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user