From d6cbba28bd978904019d722f4c1595034ac90d6b Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Wed, 18 Sep 2024 16:28:32 -0400 Subject: [PATCH] Remove noisy tracing instrumentation These #[instrument] directives were added in #631, and end up logging error messages for every crate which isn't on crates.io due to CrateInfoError::DoesNotExist. Remove these instrument lines to avoid the unnecessary error spam. --- src/storage.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/storage.rs b/src/storage.rs index 84723afd..fcfa6b65 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -2326,7 +2326,6 @@ impl Cache { /// /// This information will be pulled live from index.crates.io each time /// cargo-vet is run, but is cached in-memory. - #[tracing::instrument(skip(self, network), err)] pub async fn published_versions( &self, network: &Network, @@ -2419,7 +2418,6 @@ impl Cache { /// The result is cached to avoid unnecessary calls to the crates.io API, /// and the sparse HTTP index will be used to determine when updated /// information is required. - #[tracing::instrument(skip(self, network), err)] pub async fn crates_io_info( &self, network: Option<&Network>,