diff --git a/crates/voidpin/src/remote_copy.rs b/crates/voidpin/src/remote_copy.rs index 429ff32..e47100e 100644 --- a/crates/voidpin/src/remote_copy.rs +++ b/crates/voidpin/src/remote_copy.rs @@ -59,12 +59,10 @@ impl RemoteCopier { let resp = client.paste(PasteRequest {}).await?; let output = resp.into_inner().content; - tracing::info!( - content = std::str::from_utf8(&output).unwrap_or_default(), - "received paste response" - ); + let output = String::from_utf8_lossy(&output); + tracing::info!(content = output.to_string(), "received paste response"); - Ok(output) + Ok(output.as_bytes().to_vec()) } }