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 {
|
impl Logger for StdErrLogger {
|
||||||
fn log(&mut self, args: &fmt::Arguments) {
|
fn log(&mut self, args: &fmt::Arguments) {
|
||||||
if should_log_console() {
|
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