fix: actually drain logs (#2686)
This commit is contained in:
1 parent
28d1b305c4
commit
117c9d18ae
1 file changed
+4
-2
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user