From 23a1bedc41539960000df25d4a4ee1e6c4a1c2dc Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Fri, 7 Jun 2024 00:39:54 +1000 Subject: [PATCH] Add more debugging Signed-off-by: Jiahao XU --- crates/binstalk-git-repo-api/src/gh_api_client.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/binstalk-git-repo-api/src/gh_api_client.rs b/crates/binstalk-git-repo-api/src/gh_api_client.rs index 177dd783..c0a5f700 100644 --- a/crates/binstalk-git-repo-api/src/gh_api_client.rs +++ b/crates/binstalk-git-repo-api/src/gh_api_client.rs @@ -12,7 +12,7 @@ use std::{ use binstalk_downloader::{download::Download, remote}; use compact_str::{format_compact, CompactString, ToCompactString}; use tokio::sync::OnceCell; -use tracing::instrument; +use tracing::{debug, instrument}; use url::Url; mod common; @@ -257,7 +257,10 @@ impl GhApiClient { ) .await { - Ok(artifacts) => Ok(Some(artifacts)), + Ok(artifacts) => { + debug!("artifacts = {artifacts:?}"); + Ok(Some(artifacts)) + } Err(GhApiError::NotFound) => Ok(None), Err(err) => Err(err), }