feat: Add more logging to binstalk-{downloader, registry} ()

for debugging purposes.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-09-02 19:38:27 +10:00 committed by GitHub
parent 3c5641610a
commit 3e67e3624a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 6 deletions
crates/binstalk-registry/src

View file

@ -4,7 +4,7 @@ use cargo_toml_workspace::cargo_toml::Manifest;
use compact_str::{CompactString, ToCompactString};
use semver::{Comparator, Op as ComparatorOp, Version as SemVersion, VersionReq};
use serde::Deserialize;
use tracing::debug;
use tracing::{debug, instrument};
use crate::{parse_manifest, MatchedVersion, RegistryError};
@ -105,6 +105,7 @@ async fn fetch_crate_cratesio_version_matched(
/// Find the crate by name, get its latest stable version matches `version_req`,
/// retrieve its Cargo.toml and infer all its bins.
#[instrument]
pub async fn fetch_crate_cratesio_api(
client: Client,
name: &str,