Skip to content

Commit

Permalink
Add log for evm rpc errors (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
danimhr authored Oct 7, 2024
1 parent 63dea84 commit 54f292c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auction-server/src/traced_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ impl JsonRpcClient for TracedClient {

let result_label = match &res {
Ok(_) => "success",
Err(_) => "error",
Err(e) => {
tracing::error!(error = ?e, "rpc request failed");
"error"
}
};

let labels = [
Expand Down

0 comments on commit 54f292c

Please sign in to comment.