Skip to content

Commit 0383b9a

Browse files
committed
chore: Remove the use of the deprecated pact_matching::logging::LOG_ID
1 parent e1d1b5e commit 0383b9a

3 files changed

Lines changed: 2 additions & 54 deletions

File tree

rust/pact_matching/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ pub const PACT_RUST_VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSI
416416

417417
pub mod matchers;
418418
pub mod json;
419-
pub mod logging;
420419
pub mod matchingrules;
421420
pub mod metrics;
422421
pub mod generators;

rust/pact_matching/src/logging.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

rust/pact_verifier/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ use tracing::{debug, debug_span, error, info, Instrument, instrument, trace, war
4545
pub use callback_executors::NullRequestFilterExecutor;
4646
use callback_executors::RequestFilterExecutor;
4747
use pact_matching::{match_response, Mismatch};
48-
use pact_matching::logging::LOG_ID;
4948
use pact_matching::metrics::{MetricEvent, send_metrics_async};
5049

5150
use crate::callback_executors::{ProviderStateError, ProviderStateExecutor};
@@ -988,8 +987,7 @@ pub async fn verify_provider_async<F: RequestFilterExecutor, S: ProviderStateExe
988987
metrics_data: Option<VerificationMetrics>
989988
) -> anyhow::Result<VerificationExecutionResult> {
990989
pact_matching::matchers::configure_core_catalogue();
991-
992-
LOG_ID.scope(format!("verify:{}", provider_info.name), async {
990+
async {
993991
let pact_results = fetch_pacts(source, consumers, &provider_info).await;
994992

995993
let mut total_results = 0;
@@ -1160,7 +1158,7 @@ pub async fn verify_provider_async<F: RequestFilterExecutor, S: ProviderStateExe
11601158
#[cfg(feature = "plugins")] shutdown_plugins();
11611159

11621160
Ok(verification_result)
1163-
}.instrument(tracing::trace_span!("verify_provider_async"))).await
1161+
}.instrument(tracing::trace_span!("verify_provider_async")).await
11641162
}
11651163

11661164
fn process_errors(errors: &Vec<(String, MismatchResult)>, output: &mut Vec<String>, coloured_output: bool) {

0 commit comments

Comments
 (0)