Skip to content

Commit

Permalink
feat(logging): amend error logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Oct 15, 2024
1 parent 593c0ac commit b995209
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/rpc/src/rpc_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ where
req.method_name().to_string(),
"rpc".to_string(),
);
let method_name = req.method_name().to_string();
let svc = self.service.clone();

async move {
Expand All @@ -75,11 +74,6 @@ where
method_logger.record_http(HttpCode::TwoHundreds);
method_logger.record_rpc(RpcCode::Success);
} else if let Some(error) = rp.as_error_code() {
tracing::error!(
"rpc call with method {} retruns error, code : {}",
method_name,
error
);
let error_code: ErrorCode = error.into();
let rpc_code = match error_code {
ErrorCode::ParseError => RpcCode::ParseError,
Expand Down

0 comments on commit b995209

Please sign in to comment.