diff options
Diffstat (limited to 'client/src/lib.rs')
-rw-r--r-- | client/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs index eb978ee..a3c61aa 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -5,6 +5,7 @@ */ use anyhow::Result; use jellycommon::NodePublic; +use log::debug; use reqwest::{ header::{HeaderMap, HeaderValue}, Client, @@ -77,6 +78,7 @@ impl Session { } pub async fn node(&self, id: &str) -> Result<NodePublic> { + debug!("downloading node {id:?}"); Ok(self .client .get(format!("{}/n/{id}", self.instance.base())) @@ -88,6 +90,7 @@ impl Session { // TODO use AssetRole instead of str pub async fn node_asset(&self, id: &str, role: &str, mut writer: impl Write) -> Result<()> { + debug!("downloading asset {role:?} for {id:?}"); let mut r = self .client .get(format!("{}/n/{id}/asset?role={role}", self.instance.base())) |