mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix: actually drain logs (#2686)
This commit is contained in:
parent
28d1b305c4
commit
117c9d18ae
1 changed files with 4 additions and 2 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue