Skip to content

Commit

Permalink
chore: proper log level in trustd-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Mar 19, 2024
1 parent c1549ec commit b659df7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trustd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ impl Trustd {
match self.run_command().await {
Ok(code) => code,
Err(err) => {
log::info!("Error: {err}");
log::error!("Error: {err}");
for (n, err) in err.chain().skip(1).enumerate() {
if n == 0 {
log::info!("Caused by:");
log::error!("Caused by:");
}
log::info!("\t{err}");
log::error!("\t{err}");
}

ExitCode::FAILURE
Expand Down

0 comments on commit b659df7

Please sign in to comment.