fix: actually drain logs (#2686)

This commit is contained in:
Miles Murgaw 2024-07-23 15:40:09 -04:00 committed by GitHub
parent 28d1b305c4
commit 117c9d18ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,12 +246,14 @@ impl Output {
/// to be.
fn drain_print_logs(&mut self) {
// todo: print the build info here for the most recent build, and then the logs of the most recent build
for (platform, build) in self.build_progress.build_logs.iter() {
for (platform, build) in self.build_progress.build_logs.iter_mut() {
if build.messages.is_empty() {
continue;
}
for message in build.messages.iter() {
let messages = build.messages.drain(0..);
for message in messages {
match &message.message {
MessageType::Cargo(diagnostic) => {
println!(