mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 23:56:37 +00:00
Improve debug!
logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
bc71a1b136
commit
a295fe9161
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ use std::{
|
||||||
use binstalk_downloader::{download::Download, remote};
|
use binstalk_downloader::{download::Download, remote};
|
||||||
use compact_str::{format_compact, CompactString, ToCompactString};
|
use compact_str::{format_compact, CompactString, ToCompactString};
|
||||||
use tokio::sync::OnceCell;
|
use tokio::sync::OnceCell;
|
||||||
|
use tracing::debug;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
mod common;
|
mod common;
|
||||||
|
@ -213,6 +214,8 @@ impl GhApiClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_repo_info(&self, repo: &GhRepo) -> Result<Option<RepoInfo>, GhApiError> {
|
pub async fn get_repo_info(&self, repo: &GhRepo) -> Result<Option<RepoInfo>, GhApiError> {
|
||||||
|
debug!("get_repo_info is called on {repo:?}");
|
||||||
|
|
||||||
match self
|
match self
|
||||||
.do_fetch(
|
.do_fetch(
|
||||||
repo_info::fetch_repo_info_graphql_api,
|
repo_info::fetch_repo_info_graphql_api,
|
||||||
|
@ -246,6 +249,8 @@ impl GhApiClient {
|
||||||
let res = once_cell
|
let res = once_cell
|
||||||
.get_or_try_init(|| {
|
.get_or_try_init(|| {
|
||||||
Box::pin(async {
|
Box::pin(async {
|
||||||
|
debug!("has_release_artifact is called on {release:?}, {artifact_name}");
|
||||||
|
|
||||||
match self
|
match self
|
||||||
.do_fetch(
|
.do_fetch(
|
||||||
release_artifacts::fetch_release_artifacts_graphql_api,
|
release_artifacts::fetch_release_artifacts_graphql_api,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue