diff --git a/src/clients.rs b/src/clients.rs index 1b5d9ce4..91f64ba2 100644 --- a/src/clients.rs +++ b/src/clients.rs @@ -522,17 +522,11 @@ impl OnFailure for ClientOnFailure { let (status_code, error) = match failure_classification { GrpcFailureClass::Code(code) => { - error!( - ?trace_id, - code, latency_ms, "gRPC client failed to handle request", - ); + error!(?trace_id, code, latency_ms, "failure handling request",); (Some(grpc_to_http_code(tonic::Code::from(code.get()))), None) } GrpcFailureClass::Error(error) => { - error!( - ?trace_id, - latency_ms, "gRPC client failed to handle request: {}", error, - ); + error!(?trace_id, latency_ms, "failure handling request: {}", error,); (None, Some(error)) } }; diff --git a/src/clients/http.rs b/src/clients/http.rs index 69592951..f880dfd9 100644 --- a/src/clients/http.rs +++ b/src/clients/http.rs @@ -435,15 +435,12 @@ impl OnFailure for ClientOnFailure { ?trace_id, ?status_code, latency_ms, - "HTTP client failed to handle request", + "failure handling request", ); (Some(status_code), None) } ServerErrorsFailureClass::Error(error) => { - error!( - ?trace_id, - latency_ms, "HTTP client failed to handle request: {}", error, - ); + error!(?trace_id, latency_ms, "failure handling request: {}", error,); (None, Some(error)) } };