fix: flush cargo logs (#3282)
This commit is contained in:
1 parent
bff5478fdf
commit
f3b6ec5a2c
1 file changed
+7
@@ -249,6 +249,13 @@ impl Builder {
|
|||||||
return Ok(bundle);
|
return Ok(bundle);
|
||||||
}
|
}
|
||||||
BuildUpdate::BuildFailed { err } => {
|
BuildUpdate::BuildFailed { err } => {
|
||||||
|
// Flush remaining compiler messages
|
||||||
|
while let Ok(Some(msg)) = self.rx.try_next() {
|
||||||
|
if let BuildUpdate::CompilerMessage { message } = msg {
|
||||||
|
tracing::info!(json = ?StructuredOutput::CargoOutput { message: message.clone() }, %message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tracing::error!(?err, json = ?StructuredOutput::Error { message: err.to_string() });
|
tracing::error!(?err, json = ?StructuredOutput::Error { message: err.to_string() });
|
||||||
return Err(err);
|
return Err(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user