Avoid extra newlines in debug logging for source builds (#7174)
## Summary @henryiii brought this up and I noticed it too:  ## Test Plan `uv build`:  `uv pip install -e . --verbose`: 
This commit is contained in:
@@ -258,10 +258,10 @@ impl Write for Printer {
|
||||
fn write_str(&mut self, s: &str) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Stderr => {
|
||||
anstream::eprint!("{s}");
|
||||
anstream::eprintln!("{s}");
|
||||
}
|
||||
Self::Debug => {
|
||||
debug!("{}", s);
|
||||
debug!("{s}");
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
@@ -1106,7 +1106,7 @@ impl PythonRunner {
|
||||
loop {
|
||||
match reader.next_line().await? {
|
||||
Some(line) => {
|
||||
let _ = writeln!(printer, "{line}");
|
||||
let _ = write!(printer, "{line}");
|
||||
buffer.push(line);
|
||||
}
|
||||
None => return Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user