Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
publicqi committed Jan 18, 2024
1 parent b333c0e commit cf8d11a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ async fn rpc_call(

match result {
ResultOrError::Error(error) => {
tracing::error!("{:?}", error.to_string());
json!({ "jsonrpc": "2.0", "id": id, "error": error.take() })
}
ResultOrError::Result(result) => {
Expand Down

0 comments on commit cf8d11a

Please sign in to comment.