Skip to content

Commit

Permalink
add: debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
digikata committed Jun 3, 2024
1 parent 247bb28 commit 577d597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/fluvio-hub-util/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ pub async fn push_package_api(put_url: &str, pkgpath: &str, access: &HubAccess)
)));
}

tracing::debug!("get action token");
let pkg_bytes = std::fs::read(pkgpath)?;
let actiontoken = access.get_publish_token().await?;

tracing::debug!(url = put_url, "put package");
let req = http::Request::put(put_url)
.header("Authorization", &actiontoken)
.header(http::header::CONTENT_TYPE, mime::OCTET_STREAM.as_str())
Expand Down

0 comments on commit 577d597

Please sign in to comment.