chore: add print to output from paste
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-08-03 13:29:36 +02:00
parent 838cd9d6b1
commit 404e393b97
2 changed files with 5 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ async fn main() -> anyhow::Result<()> {
}
Commands::Paste {} => {
let mut stdout = tokio::io::stdout();
if let Ok(remote_host) = std::env::var("VOIDPIN_REMOTE") {
let output = state.remote_copier(&remote_host).paste().await?;

View File

@@ -58,8 +58,11 @@ impl RemoteCopier {
tracing::info!("sending paste request");
let resp = client.paste(PasteRequest {}).await?;
tracing::info!("received paste response");
let output = resp.into_inner().content;
tracing::info!(
content = std::str::from_utf8(&output).unwrap_or_default(),
"received paste response"
);
Ok(output)
}