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

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

View file

@ -14,7 +14,7 @@ use semver::{Version, VersionReq};
use serde::Deserialize;
use serde_json::Error as JsonError;
use sha2::{Digest, Sha256};
use tracing::debug;
use tracing::{debug, instrument};
use crate::{visitor::ManifestVisitor, RegistryError};
@ -37,6 +37,7 @@ impl DataVerifier for Sha256Digest {
}
}
#[instrument]
pub(super) async fn parse_manifest(
client: Client,
crate_name: &str,