Skip to content

Commit

Permalink
Remove noisy tracing instrumentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mystor committed Sep 18, 2024
1 parent 57a7c61 commit d6cbba2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit d6cbba2

Please sign in to comment.