Add transaction log messages to |solana confirm -v| output
This commit is contained in:
parent
3aff8f69af
commit
e9dbbdeb81
|
@ -197,6 +197,15 @@ pub fn write_transaction<W: io::Write>(
|
|||
)?;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(log_messages) = &transaction_status.log_messages {
|
||||
if !log_messages.is_empty() {
|
||||
writeln!(w, "{}Log Messages:", prefix,)?;
|
||||
for log_message in log_messages {
|
||||
writeln!(w, "{} {}", prefix, log_message,)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
writeln!(w, "{}Status: Unavailable", prefix)?;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue