Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 20, 2024
1 parent 6380059 commit e2d3cf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ async fn send_solution(
.await;
match &result.tx_result.code {
cosmrs::tendermint::abci::Code::Err(err) => {
log::info!("result: {:?}", result);
log::error!("solution result: {:?}", result);
panic!("Error: {:?}", err)
}
cosmrs::tendermint::abci::Code::Ok => {
log::info!("ok: {:?}", result);
log::trace!("ok: {:?}", result);
}
}
}
5 changes: 2 additions & 3 deletions mantis/node/src/mantis/autopilot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ pub async fn cleanup(
.await;
match &result.tx_result.code {
cosmrs::tendermint::abci::Code::Err(err) => {
log::warn!("result: {:?}", result);
panic!("Error: {:?}", err)
log::error!("clean result: {:?}", result);
}
cosmrs::tendermint::abci::Code::Ok => {
log::info!("ok: {:?}", result);
log::trace!("ok: {:?}", result);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion mantis/node/src/mantis/cosmos/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub async fn sign_and_tx_tendermint(
.broadcast_commit(&rpc_client)
.await
.expect("broadcasted");
log::error!("result: {:?}", result);
log::trace!("result: {:?}", result);
assert!(!result.check_tx.code.is_err(), "err");
assert!(!result.tx_result.code.is_err(), "err");
result
Expand Down

0 comments on commit e2d3cf0

Please sign in to comment.